Permalink
Browse files

fix RSTRING_PTR/LEN fallback macros

  • Loading branch information...
1 parent bb3a5c3 commit 6ae0e1c40a28af1d584b36dfed76b0ab84fdd7b8 @tmm1 tmm1 committed Feb 24, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 ext/em.h
View
4 ext/em.h
@@ -44,10 +44,10 @@ See the file COPYING for complete licensing information.
#define RUBY_UBF_IO RB_UBF_DFL
#endif
#ifndef RSTRING_PTR
- #define RSTRING_PTR(str) RString(str)->ptr
+ #define RSTRING_PTR(str) RSTRING(str)->ptr
#endif
#ifndef RSTRING_LEN
- #define RSTRING_LEN(str) RString(str)->len
+ #define RSTRING_LEN(str) RSTRING(str)->len
#endif
#ifndef RSTRING_LENINT
#define RSTRING_LENINT(str) RSTRING_LEN(str)

0 comments on commit 6ae0e1c

Please sign in to comment.