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

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