yanagiba / swift-ast

A Swift AST parser and visitor that is written in Swift.
Apache License 2.0
355 stars 40 forks source link

UInt64 literals cause runtime overflow errors. #103

Open y-ich opened 3 years ago

y-ich commented 3 years ago

🚨New Issue Checklist🚨

Issue Summary

[Insert a brief but thorough description of the issue]

UInt64 literals such as 0xffffffffffffffff, cause runtime overflow errors at https://github.com/yanagiba/swift-ast/blob/e8507d78b32dbd33ea5ea975bbbc82b7613870a1/Sources/Lexer/Lexer%2BNumericLiteral.swift#L94

Environment

Reproduction Steps

[Detailed steps to reproduce the issue.]

Sample code ``` [Insert sample source code here] ``` Command to run `swift-ast` with the code above: `swift-ast sample.swift`

Expected Result

What do you expect to happen as a result of the reproduction steps?

Actual Behavior

What currently happens as a result of the reproduction steps?

[
  Insert the current outputs and
  maybe other information that
  could help us understand the issue better
]

Even Better

Is your project open sourced? If yes, can you point us to your repository? If not, is it possible to make a small project that fails the Travis CI? If not, can you create a gist with your sample code for us?

ryuichi-assistant commented 2 years ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates.

Please make sure to update to the latest version and check if that solves the issue. Let us know if that works for you by adding a comment.