Fix names of methods compile_float and compile_complex

This commit is contained in:
Konrad Hinsen 2013-04-11 14:41:09 +02:00
parent ac0a597742
commit 15ae8c83f1

View File

@ -902,13 +902,13 @@ class HyASTCompiler(object):
col_offset=number.start_column)
@builds(HyFloat)
def compile_integer(self, number):
def compile_float(self, number):
return ast.Num(n=float(number),
lineno=number.start_line,
col_offset=number.start_column)
@builds(HyComplex)
def compile_integer(self, number):
def compile_complex(self, number):
return ast.Num(n=complex(number),
lineno=number.start_line,
col_offset=number.start_column)