diff --git a/hy/compiler.py b/hy/compiler.py index 6dc1842..57c55ad 100644 --- a/hy/compiler.py +++ b/hy/compiler.py @@ -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)