diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index 79d6cc69..7f6ee792 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -4,10 +4,15 @@ on: push: paths: - 'docs/**' - - 'javascript/**' - - 'python/**' - 'README.rst' - '**/*.rst' + - '**/*.c' + - '**/*.cpp' + - '**/*.cs' + - '**/*.h' + - '**/*.js' + - '**/*.py' + - '**/*.rs' workflow_dispatch: schedule: - cron: "0 0 * * 1" diff --git a/cplusplus/src/p0016.cpp b/cplusplus/src/p0016.cpp index 496b116c..718ba009 100644 --- a/cplusplus/src/p0016.cpp +++ b/cplusplus/src/p0016.cpp @@ -17,7 +17,7 @@ unsigned long long p0016() { std::vector numbers(16, 0); const unsigned long long ten17 = 100000000000000000; numbers[0] = 1; - for (unsigned char i = 0; i < 1000; i++) { + for (unsigned short i = 0; i < 1000; i++) { for (size_t j = 0; j < numbers.size(); j++) { numbers[j] *= 2; } diff --git a/csharp/Euler/p0016.cs b/csharp/Euler/p0016.cs index ff6f7a48..9ad38174 100644 --- a/csharp/Euler/p0016.cs +++ b/csharp/Euler/p0016.cs @@ -18,7 +18,7 @@ public object Answer() ulong[] numbers = new ulong[16]; const ulong ten17 = 100000000000000000; numbers[0] = 1; - for (byte i = 0; i < 1000; i++) + for (ushort i = 0; i < 1000; i++) { for (byte j = 0; j < 16; j++) {