Blame SOURCES/0001-iterration-problem-for-non-decimal-string.patch

33f361
diff -up jq-1.6/src/jv.c.iteration jq-1.6/src/jv.c
33f361
--- jq-1.6/src/jv.c.iteration	2022-10-21 14:17:26.977551386 +0200
33f361
+++ jq-1.6/src/jv.c	2022-10-21 14:18:43.562430867 +0200
33f361
@@ -308,6 +308,7 @@ static jv jvp_literal_number_new(const c
33f361
   n->refcnt = JV_REFCNT_INIT;
33f361
   n->literal_data = NULL;
33f361
   decContext *ctx = DEC_CONTEXT();
33f361
+  decContextClearStatus(ctx, DEC_Conversion_syntax);
33f361
   decNumberFromString(&n->num_decimal, literal, ctx);
33f361
   n->num_double = NAN;
33f361
 
33f361
diff -up jq-1.6/tests/optional.test.iteration jq-1.6/tests/optional.test
33f361
--- jq-1.6/tests/optional.test.iteration	2022-10-21 14:22:04.191734821 +0200
33f361
+++ jq-1.6/tests/optional.test	2022-10-21 14:23:45.820901911 +0200
33f361
@@ -17,4 +17,9 @@ strftime("%A, %B %e, %Y")
33f361
 1435677542.822351
33f361
 "Tuesday, June 30, 2015"
33f361
 
33f361
-
33f361
+# iteration must continue after hello
33f361
+.[]|tonumber?
33f361
+["1", "hello", "3", 4]
33f361
+1
33f361
+3
33f361
+4