File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -871,7 +871,7 @@ auto res = cli.Post(
871871httplib::Client cli (url, port);
872872
873873// prints: 0 / 000 bytes => 50% complete
874- auto res = cli.Get("/", [ ] (uint64_t len, uint64_t total) {
874+ auto res = cli.Get("/", [ ] (size_t len, size_t total) {
875875 printf("%lld / %lld bytes => %d%% complete\n",
876876 len, total,
877877 (int)(len* 100/total));
Original file line number Diff line number Diff line change 1818#error \
1919 " cpp-httplib doesn't support 32-bit Windows. Please use a 64-bit compiler."
2020#elif defined(__SIZEOF_POINTER__) && __SIZEOF_POINTER__ < 8
21- #error \
21+ #warning \
2222 " cpp-httplib doesn't support 32-bit platforms. Please use a 64-bit compiler."
2323#elif defined(__SIZEOF_SIZE_T__) && __SIZEOF_SIZE_T__ < 8
24- #error \
24+ #warning \
2525 " cpp-httplib doesn't support platforms where size_t is less than 64 bits."
2626#endif
2727
You can’t perform that action at this time.
0 commit comments