diff options
author | kaiwu <kaiwu2004@gmail.com> | 2022-04-11 23:00:56 +0800 |
---|---|---|
committer | kaiwu <kaiwu2004@gmail.com> | 2022-04-11 23:00:56 +0800 |
commit | a2ff02097589cac67b5fa5b301e6449ebd4ac443 (patch) | |
tree | 58770da3ac1e13be7ebc435ec133a9e56d3e933b /src/2016/day5/aoc.cpp | |
parent | 56d6b697e18b42dc895a691d10c898c9c19e6e7f (diff) | |
download | advent-of-code-a2ff02097589cac67b5fa5b301e6449ebd4ac443.tar.gz advent-of-code-a2ff02097589cac67b5fa5b301e6449ebd4ac443.zip |
fix clang errors
Diffstat (limited to 'src/2016/day5/aoc.cpp')
-rw-r--r-- | src/2016/day5/aoc.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/2016/day5/aoc.cpp b/src/2016/day5/aoc.cpp index 16c5f70..024a9ff 100644 --- a/src/2016/day5/aoc.cpp +++ b/src/2016/day5/aoc.cpp @@ -12,10 +12,10 @@ void day5(const char* secret, int len, char pass1[], char pass2[]) { int x1 = len; int x2 = 0; while (i < INT64_MAX && x2 < 8) { - sprintf(buf + l, "%zu", i); + sprintf(buf + l, "%lld", i); char* hash = md5sum(buf); if (lead_zeros(hash) >= 5) { - printf("%zu %s\n", i, hash); + printf("%lld %s\n", i, hash); if (x1 > 0) { pass1[len - x1] = hash[5]; x1--; |