summaryrefslogtreecommitdiff
path: root/05.c
diff options
context:
space:
mode:
Diffstat (limited to '05.c')
-rw-r--r--05.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/05.c b/05.c
index eeac8ce..3e9aa10 100644
--- a/05.c
+++ b/05.c
@@ -5,8 +5,8 @@
#include "input.h"
#define INPUT "input/05.txt"
-#define EXPECTED1 6113
-#define EXPECTED2 20373
+#define EXPECTED1 6113L
+#define EXPECTED2 20373L
#define RESOLUTION 1000
@@ -61,7 +61,7 @@ void part1(struct input_str* input) {
}
// count space points with at least a value of 2
- int result = 0;
+ long result = 0;
for(int x = 0; x < RESOLUTION; x++) {
for(int y = 0; y < RESOLUTION; y++) {
if(space1[x][y] >= 2)
@@ -91,7 +91,7 @@ void part2(struct input_str* input) {
}
// count space points with at least a value of 2
- int result = 0;
+ long result = 0;
for(int x = 0; x < RESOLUTION; x++) {
for(int y = 0; y < RESOLUTION; y++) {
if(space2[x][y] >= 2)