summaryrefslogtreecommitdiff
path: root/test/-ext-/num2int
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-03-18 15:21:04 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-03-18 15:21:04 +0000
commitf4aff7feb18bac8f15494ac36c5027d216aac5f8 (patch)
treed1a55cf0aa40b87df3707d78c7a26c5c41117a1d /test/-ext-/num2int
parentbd377449f01c033b6fd2c8c880611c1777c8e87d (diff)
num2ll and num2ull
* ext/-test-/num2int/num2int.c (print_num2ll, print_num2ull): define only if long long is available, and use long long printf modifier checked by configure. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35086 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/-ext-/num2int')
-rw-r--r--test/-ext-/num2int/test_num2int.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/-ext-/num2int/test_num2int.rb b/test/-ext-/num2int/test_num2int.rb
index 381336e..b69f29a 100644
--- a/test/-ext-/num2int/test_num2int.rb
+++ b/test/-ext-/num2int/test_num2int.rb
@@ -188,7 +188,7 @@ class TestNum2int < Test::Unit::TestCase
assert_output((FIXNUM_MAX+1).to_s) do
Num2int.print_num2ll(FIXNUM_MAX+1)
end
- end
+ end if defined?(Num2int.print_num2ll)
def test_num2ull
assert_output("0") do
@@ -221,7 +221,7 @@ class TestNum2int < Test::Unit::TestCase
assert_output((FIXNUM_MAX+1).to_s) do
Num2int.print_num2ull(FIXNUM_MAX+1)
end
- end
+ end if defined?(Num2int.print_num2ull)
end