In Ruby, `sprintf` specifier `%u` should behave as `%d`; fix #3730

Since there's no unsigned integer in Ruby. Binary, octal and
hexadecimal negative numbers can be represented by using 2's
compliment. But decimal (not being power of 2) cannot be use
that kind of format.
parent bd66c5d7
......@@ -838,10 +838,10 @@ retry:
case 'b':
case 'B':
base = 2; break;
case 'u':
case 'd':
case 'i':
sign = 1;
case 'u':
default:
base = 10; break;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment