mirror of
https://github.com/SerenityOS/serenity.git
synced 2026-11-07 04:29:30 -10:00
Depending on the definition of `i64` on a particular platform, there's an ambiguity when constructing a Crypto::SignedBigInteger from an integer literal. On serenity, using an int literal is just fine. On macOS, where i64 is long instead of long long, the compiler complains there's an abiguity when using a function-style cast to call a converting constructor between the i64 and double constructors for SignedBigInteger. This commit changes the construction of irrational constants to use user defined literals instead of integer literals, which removes the ambiguity and allows the code to compile on all platforms.