Skip to content

Commit

Permalink
Correct type errors
Browse files Browse the repository at this point in the history
  • Loading branch information
LivInTheLookingGlass committed Aug 9, 2024
1 parent e429852 commit 1594253
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion cplusplus/src/p0016.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ unsigned long long p0016() {
std::vector<unsigned long long> 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;
}
Expand Down
2 changes: 1 addition & 1 deletion csharp/Euler/p0016.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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++)
{
Expand Down

0 comments on commit 1594253

Please sign in to comment.