parent
							
								
									e17e0d031f
								
							
						
					
					
						commit
						6de4df23e4
					
				
					 3 changed files with 11 additions and 4 deletions
				
			
		|  | @ -620,7 +620,7 @@ class serializer | |||
|         if (is_negative) | ||||
|         { | ||||
|             *buffer_ptr = '-'; | ||||
|             abs_value = static_cast<number_unsigned_t>(0 - x); | ||||
|             abs_value = static_cast<number_unsigned_t>(-1 - x) + 1; | ||||
| 
 | ||||
|             // account one more byte for the minus sign
 | ||||
|             n_chars = 1 + count_digits(abs_value); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue