pluskid-rmmseg-cpp 0.2.1 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/ext/rmmseg/rmmseg.cpp +2 -2
- metadata +1 -1
data/ext/rmmseg/rmmseg.cpp
CHANGED
@@ -96,11 +96,11 @@ extern "C" {
|
|
96
96
|
{
|
97
97
|
Token *tk = ALLOC(Token);
|
98
98
|
int start = t.text-base;
|
99
|
-
tk->text = rb_str_new(t.text, t.length);
|
100
99
|
|
101
100
|
// This is necessary, see
|
102
101
|
// http://pluskid.lifegoo.com/?p=348
|
103
|
-
|
102
|
+
volatile VALUE text = rb_str_new(t.text, t.length);
|
103
|
+
tk->text = text;
|
104
104
|
|
105
105
|
tk->start = INT2FIX(start);
|
106
106
|
tk->end = INT2FIX(start + t.length);
|