summary refs log tree commit diff stats
path: root/compiler/lexer.nim
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/lexer.nim')
-rw-r--r--compiler/lexer.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/lexer.nim b/compiler/lexer.nim
index bcc02da9e..abc491bfe 100644
--- a/compiler/lexer.nim
+++ b/compiler/lexer.nim
@@ -431,7 +431,7 @@ proc getNumber(L: var TLexer): TToken =
         lexMessage(L, errNumberOutOfRange, result.literal)
   except ValueError:
     lexMessage(L, errInvalidNumber, result.literal)
-  except OverflowError, EOutOfRange:
+  except OverflowError, RangeError:
     lexMessage(L, errNumberOutOfRange, result.literal)
   L.bufpos = endpos