mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
cparser.rb: limit word number
* ext/fiddle/lib/fiddle/cparser.rb (parse_ctype): limit split word number as the rest are not used. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49121 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
91bcb09262
commit
544651a2fb
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
Sat Jan 3 18:53:28 2015 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* ext/fiddle/lib/fiddle/cparser.rb (parse_ctype): limit split word
|
||||
number as the rest are not used.
|
||||
|
||||
Sat Jan 3 18:19:50 2015 SHIBATA Hiroshi <shibata.hiroshi@gmail.com>
|
||||
|
||||
* ext/fiddle/lib/fiddle/cparser.rb: r49110 broke Fiddle::Import with
|
||||
|
|
|
@ -169,7 +169,7 @@ module Fiddle
|
|||
when /\*/, /\[[\s\d]*\]/
|
||||
return TYPE_VOIDP
|
||||
else
|
||||
ty = ty.split(' ')[0]
|
||||
ty = ty.split(' ', 2)[0]
|
||||
if( tymap[ty] )
|
||||
return parse_ctype(tymap[ty], tymap)
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue