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

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