Skip to content
Permalink
Browse files
Fix for sprintf test exceeding bounds with MRB_INT16
  • Loading branch information
dabroz committed Nov 20, 2016
1 parent 3ce51cb commit 4289e0cd8126ef963a7aec459f24785de5ee422e
Showing 1 changed file with 1 addition and 1 deletion.
@@ -5,5 +5,5 @@
assert_equal "one=1", "one=%d" % 1
assert_equal "1 one 1.0", "%d %s %3.1f" % [ 1, "one", 1.01 ]
assert_equal "123 < 456", "%{num} < %<str>s" % { num: 123, str: "456" }
assert_equal 16, ("%b" % (1<<15)).size
assert_equal 15, ("%b" % (1<<14)).size
end

0 comments on commit 4289e0c

Please sign in to comment.