Code Review
/
common
/
thrift.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
ab3666e
)
THRIFT-572. rb: fix RSTRING for 1.9 compatibility
author
Bryan Duxbury
<bryanduxbury@apache.org>
Tue, 1 Sep 2009 23:18:34 +0000
(23:18 +0000)
committer
Bryan Duxbury
<bryanduxbury@apache.org>
Tue, 1 Sep 2009 23:18:34 +0000
(23:18 +0000)
Use a macro compatible with Ruby 1.9.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@810303
13f79535
-47bb-0310-9956-
ffa450edef68
lib/rb/ext/memory_buffer.c
patch
|
blob
|
history
diff --git
a/lib/rb/ext/memory_buffer.c
b/lib/rb/ext/memory_buffer.c
index
3a9c101
..
74efa2c
100644
(file)
--- a/
lib/rb/ext/memory_buffer.c
+++ b/
lib/rb/ext/memory_buffer.c
@@
-54,7
+54,7
@@
VALUE rb_thrift_memory_buffer_read(VALUE self, VALUE length_value) {
index = 0;
}
- if (RSTRING
(data)->len
< length) {
+ if (RSTRING
_LEN(data)
< length) {
rb_raise(rb_eEOFError, "Not enough bytes remain in memory buffer");
}