use existing constant

This commit is contained in:
Torsten Ruger
2018-05-16 12:55:51 +03:00
parent 9597fc5756
commit dc8afce444
2 changed files with 2 additions and 2 deletions

View File

@ -39,7 +39,7 @@ module Parfait
# 0 -based index
def set_internal_word(index , value)
return set_type(value) if( index == 0)
return set_type(value) if( index == TYPE_INDEX)
raise "not type #{@type.class}" unless @type.is_a?(Type)
name = @type.name_at(index)
#return value unless name