diff options
Diffstat (limited to 'tools/genruby.rb')
-rwxr-xr-x | tools/genruby.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/genruby.rb b/tools/genruby.rb index 77a4fb1..2315da0 100755 --- a/tools/genruby.rb +++ b/tools/genruby.rb @@ -171,7 +171,7 @@ def gen_enums path, indent i+=1 else h[s]=v - i=v.to_i+1 + i=eval(v).to_i+1 end end args = syms.inject(''){|r,s| r+=":#{s.strip.downcase}, #{h[s]}, " }.sub(/, $/,'') |