mirror of
				https://github.com/stedolan/jq.git
				synced 2024-05-11 05:55:39 +00:00 
			
		
		
		
	Fix iterration problem for non decimal string
When the string transformation to number failed, all following transformation failed too. This happend because status in decNumberFromString function is updated just in error case. Reusing the DEC_CONTEXT that failed before results into error even if the string is valid number.
This commit is contained in:
		
				
					committed by
					
						
						Nico Williams
					
				
			
			
				
	
			
			
			
						parent
						
							174db0f935
						
					
				
				
					commit
					c4d39c4d22
				
			@@ -841,3 +841,8 @@ true
 | 
			
		||||
{"foo": 42}
 | 
			
		||||
{"foo": 43}
 | 
			
		||||
 | 
			
		||||
.[]|tonumber?
 | 
			
		||||
["1", "hello", "3", 4]
 | 
			
		||||
1
 | 
			
		||||
3
 | 
			
		||||
4
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user