aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas Schmucker <ts@its1.de>2023-12-03 20:33:22 +0100
committerThomas Schmucker <ts@its1.de>2023-12-03 20:33:22 +0100
commitf5c8c5c57a2f5b0186c9c22bc2318449e875e01b (patch)
treec2385a86545dc1b30479a3539bcfba0f5c0d5208 /src
parentfa4b21d922108b8fe714cbe7c99bcfa5712709fe (diff)
downloadadvent-of-code-f5c8c5c57a2f5b0186c9c22bc2318449e875e01b.tar.gz
advent-of-code-f5c8c5c57a2f5b0186c9c22bc2318449e875e01b.tar.bz2
advent-of-code-f5c8c5c57a2f5b0186c9c22bc2318449e875e01b.zip
Trim den Code, noch mehr, Teil 2 ;-)
Diffstat (limited to 'src')
-rw-r--r--src/day03.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/day03.cpp b/src/day03.cpp
index 74400db..b266f59 100644
--- a/src/day03.cpp
+++ b/src/day03.cpp
@@ -115,9 +115,7 @@ part2() // NOLINT
115 115
116 auto& line = lines[row]; 116 auto& line = lines[row];
117 117
118 auto digit = line[col]; 118 if ( !is_digit(line[col]) ) {
119
120 if ( !is_digit(digit) ) {
121 return false; 119 return false;
122 } 120 }
123 121