ext/rb_oniguruma.h in geoffgarside-oniguruma-2.0.2 vs ext/rb_oniguruma.h in geoffgarside-oniguruma-2.0.3
- old
+ new
@@ -33,10 +33,10 @@
/* Oniguruma::ORegexp C class data structure */
typedef struct og_oregexp {
regex_t *reg;
} og_ORegexp;
-#define OG_STRING_PTR(str) (UChar*)(RSTRING(str)->ptr)
+#define OG_STRING_PTR(str) (UChar*)(RSTRING_PTR(str))
#define DEBUG 1
#ifdef DEBUG
# define NOTE "**NOTE***: "