summaryrefslogtreecommitdiff
path: root/numeric.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 /numeric.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 'numeric.c')
-rw-r--r--numeric.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/numeric.c b/numeric.c
index 1b80a2b6e0..0c419e1be7 100644
--- a/numeric.c
+++ b/numeric.c
@@ -2386,7 +2386,7 @@ fix_mul(VALUE x, VALUE y)
#if SIZEOF_LONG * 2 <= SIZEOF_LONG_LONG
LONG_LONG d;
#else
- long c;
+ volatile long c;
VALUE r;
#endif