Skip to content

Lexer doesn't recognize Int64 minimal value #340

Description

@fatmage

Writing Int64 minimal value -9223372036854775808L gets you an out of bounds error as the absolute value exceeds the max value of Int64.

> let a = -9223372036854775808L ;;
fatal error: Integer literal 9223372036854775808 exceeds the representable range
   | let a = -9223372036854775808L ;;
   |          ^^^^^^^^^^^^^^^^^^^
   | 
> let a = -9223372036854775807L - 1L ;;
> a ;;
: Int64
= -9223372036854775808L
> 

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    0. parsingThings related to lexer and parser

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions