Files
Andrew Kaster db135bcde9 Calculator: Construct irrational constants using user defined literals
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.
2026-07-12 14:42:21 -04:00
..
2024-01-19 10:50:15 +00:00