summaryrefslogtreecommitdiff
path: root/rb/src/IceRuby/ObjectFactory.cpp
diff options
context:
space:
mode:
authorMark Spruiell <mes@zeroc.com>2006-10-26 18:19:36 +0000
committerMark Spruiell <mes@zeroc.com>2006-10-26 18:19:36 +0000
commit96dc3dac6b8a22f9dfaef728a84db652eda8f3dd (patch)
treec8f745d592202eafba256d2a36282aa6d8cd25b8 /rb/src/IceRuby/ObjectFactory.cpp
parentFix typo (diff)
downloadice-96dc3dac6b8a22f9dfaef728a84db652eda8f3dd.tar.bz2
ice-96dc3dac6b8a22f9dfaef728a84db652eda8f3dd.tar.xz
ice-96dc3dac6b8a22f9dfaef728a84db652eda8f3dd.zip
declaring local VALUEs to be volatile; fixing bug 1496 in createArray
Diffstat (limited to 'rb/src/IceRuby/ObjectFactory.cpp')
-rw-r--r--rb/src/IceRuby/ObjectFactory.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/rb/src/IceRuby/ObjectFactory.cpp b/rb/src/IceRuby/ObjectFactory.cpp
index 778ca1d5efc..54660aa65fc 100644
--- a/rb/src/IceRuby/ObjectFactory.cpp
+++ b/rb/src/IceRuby/ObjectFactory.cpp
@@ -47,8 +47,8 @@ IceRuby::ObjectFactory::create(const string& id)
//
// Invoke the create method on the Ruby factory object.
//
- VALUE str = createString(id);
- VALUE obj = callRuby(rb_funcall, p->second, rb_intern("create"), 1, str);
+ volatile VALUE str = createString(id);
+ volatile VALUE obj = callRuby(rb_funcall, p->second, rb_intern("create"), 1, str);
if(NIL_P(obj))
{
return 0;
@@ -67,7 +67,7 @@ IceRuby::ObjectFactory::create(const string& id)
//
// Instantiate the object.
//
- VALUE obj = callRuby(rb_class_new_instance, 0, reinterpret_cast<VALUE*>(0), info->rubyClass);
+ volatile VALUE obj = callRuby(rb_class_new_instance, 0, reinterpret_cast<VALUE*>(0), info->rubyClass);
assert(!NIL_P(obj));
return new ObjectReader(obj, info);
}