From ef67bc819e650efd31fab642962c3a6ce46e5f2b Mon Sep 17 00:00:00 2001 From: Ryan Davis Date: Thu, 22 Jan 2009 11:19:34 -0800 Subject: [PATCH] Fixed typing issue --- lib/racc/parserfilegenerator.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/racc/parserfilegenerator.rb b/lib/racc/parserfilegenerator.rb index 4c1690f6..3c349a95 100644 --- a/lib/racc/parserfilegenerator.rb +++ b/lib/racc/parserfilegenerator.rb @@ -328,6 +328,7 @@ def integer_list(name, table) end def serialize_integer_list_compressed(name, table) + # TODO: this can be made a LOT more clean with a simple split/map sep = "\n" nsep = ",\n" buf = '' @@ -351,7 +352,7 @@ def serialize_integer_list_compressed(name, table) line ' ]' @f.print(<<-End) - #{name} = arr = Array.new(#{table.size}, nil) + #{name} = arr = ::Array.new(#{table.size}, nil) idx = 0 clist.each do |str| str.split(',', -1).each do |i|