Changeset 3279 for trunk/lang/ruby/Ruby_Rappture.cc
- Timestamp:
- Feb 4, 2013, 2:04:57 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lang/ruby/Ruby_Rappture.cc
r3278 r3279 217 217 if (T_STRING == TYPE(value)) 218 218 { 219 long int nbytes; 220 char *bytes = rb_str2cstr(value, &nbytes); 221 222 lib->putData(GetStdString(path), bytes, nbytes, NUM2INT(append)); 219 VALUE strValue; 220 221 strValue = StringValue(value); 222 lib->putData(GetStdString(path), 223 RSTRING(strValue)->ptr, RSTRING(strValue)->len, 224 NUM2INT(append)); 223 225 } 224 226 #ifdef RAISE_EXCEPTIONS
Note: See TracChangeset
for help on using the changeset viewer.