mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* parse.y (rb_intern2): unconstify cast.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12641 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
d9987aa704
commit
8e11ff411a
2 changed files with 5 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
|||
Thu Jun 28 02:03:39 2007 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||
|
||||
* parse.y (rb_intern2): unconstify cast.
|
||||
|
||||
Thu Jun 28 01:44:31 2007 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* parse.y (rb_intern2): don't allocate a string object at first.
|
||||
|
|
2
parse.y
2
parse.y
|
@ -8396,7 +8396,7 @@ rb_intern2(const char *name, long len)
|
|||
fake_str.basic.flags = T_STRING|RSTRING_NOEMBED|FL_FREEZE;
|
||||
fake_str.basic.klass = rb_cString;
|
||||
fake_str.as.heap.len = len;
|
||||
fake_str.as.heap.ptr = name;
|
||||
fake_str.as.heap.ptr = (char *)name;
|
||||
fake_str.as.heap.aux.capa = len;
|
||||
|
||||
if (st_lookup(global_symbols.sym_id, (st_data_t)&fake_str, (st_data_t *)&id))
|
||||
|
|
Loading…
Reference in a new issue