commit c74df0cbaf341ae83fa142dd4eab3843d54b8c07 parent d6c219beecaf1e22a8b3d87ec3975042f5326cb3 Author: mpizzzle <m@michaelpercival.xyz> Date: Mon, 21 Sep 2020 23:35:31 +0100 clang warning Diffstat:
| M | Euler_63.cpp | | | 5 | ++--- |
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/Euler_63.cpp b/Euler_63.cpp @@ -6,7 +6,7 @@ int Euler::PowerfulDigitCounts() for (cpp_int i = 1; i < 10; ++i) { - for (int p = 1;; ++p) + for (uint64_t p = 1;; ++p) { if (EulerUtility::BigIntToDigits(EulerUtility::power(i, p)).size() == p) { @@ -20,4 +20,4 @@ int Euler::PowerfulDigitCounts() } return count; -}- No newline at end of file +}