summaryrefslogtreecommitdiff
path: root/rational.c
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-05-30 06:53:21 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-05-30 06:53:21 +0000
commit1d5431374d286c5ce7f8bfc6033663a0fc051eec (patch)
treef7648e9b23df5d7b0a375b7eae1b687d6fc521db /rational.c
parent4e4649e13cd4175aab75a0edc2fc5b082cf735d1 (diff)
* insns.def (opt_mult): as r31805, volatile it.
Without this, clang -O fails calculation. * numeric.c (fix_mul): ditto. * rational.c (f_imul): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31822 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'rational.c')
-rw-r--r--rational.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rational.c b/rational.c
index 00b4fa7..fa03062 100644
--- a/rational.c
+++ b/rational.c
@@ -604,7 +604,7 @@ inline static VALUE
f_imul(long a, long b)
{
VALUE r;
- long c;
+ volatile long c;
if (a == 0 || b == 0)
return ZERO;