From a82dc99a86d91fe1b0f950d343482eaf30acb269 Mon Sep 17 00:00:00 2001 From: tiptorrent development team Date: Mon, 27 Sep 2021 11:41:44 +0200 Subject: use int32_t for chunk index cli->chunk = -1 shortcircuits the runtime file split in chunk --- src/core.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/core.h b/src/core.h index 67c9af7..a8d8736 100644 --- a/src/core.h +++ b/src/core.h @@ -49,7 +49,7 @@ struct tip_client { const char *uri; const char *path; bool checksum; - uint32_t chunk; + int32_t chunk; off_t size; off_t left; int fd; -- cgit v1.2.3-18-g5258