minor fixes

This commit is contained in:
Torsten Ruger
2017-01-15 14:44:11 +02:00
parent 85eec2f3cb
commit 680fc7ecce
2 changed files with 2 additions and 2 deletions

View File

@ -139,7 +139,7 @@ module Parfait
# index of the variable when using get_internal_word
# (get_internal_word is 1 based and 1 is always the type)
def variable_index( name )
has = names.index_of(name)
has = @names.index_of(name)
return nil unless has
raise "internal error #{name}:#{has}" if has < 1
has