diff options
author | Jose <jose@zeroc.com> | 2015-02-19 18:57:06 +0100 |
---|---|---|
committer | Jose <jose@zeroc.com> | 2015-02-19 18:57:06 +0100 |
commit | e83f9affb869c685b735fee8153abdb7973df7c2 (patch) | |
tree | 3ad0d19f8314dd2e2cc412fe1481a2cd5144c108 /rb/src/IceRuby/Endpoint.cpp | |
parent | Update windows dependencies (diff) | |
download | ice-e83f9affb869c685b735fee8153abdb7973df7c2.tar.bz2 ice-e83f9affb869c685b735fee8153abdb7973df7c2.tar.xz ice-e83f9affb869c685b735fee8153abdb7973df7c2.zip |
volatile usage in Ruby
Diffstat (limited to 'rb/src/IceRuby/Endpoint.cpp')
-rw-r--r-- | rb/src/IceRuby/Endpoint.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rb/src/IceRuby/Endpoint.cpp b/rb/src/IceRuby/Endpoint.cpp index c44585c5db8..746f87c7ba0 100644 --- a/rb/src/IceRuby/Endpoint.cpp +++ b/rb/src/IceRuby/Endpoint.cpp @@ -166,7 +166,7 @@ IceRuby::createEndpointInfo(const Ice::EndpointInfoPtr& p) Ice::OpaqueEndpointInfoPtr opaque = Ice::OpaqueEndpointInfoPtr::dynamicCast(p); Ice::ByteSeq b = opaque->rawBytes; - VALUE v = callRuby(rb_str_new, reinterpret_cast<const char*>(&b[0]), static_cast<long>(b.size())); + volatile VALUE v = callRuby(rb_str_new, reinterpret_cast<const char*>(&b[0]), static_cast<long>(b.size())); rb_ivar_set(info, rb_intern("@rawBytes"), v); rb_ivar_set(info, rb_intern("@rawEncoding"), createEncodingVersion(opaque->rawEncoding)); } |