diff options
author | David Robillard <d@drobilla.net> | 2020-08-13 17:25:47 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-08-13 17:25:47 +0200 |
commit | 2c00856aa594eeb19dbca5b783815edbd2b282fe (patch) | |
tree | 4a901488d5bc194f82fa9cdc210287319b93dbf6 /test/dict_bench.c | |
parent | 15efd87598d434d8ee7dc45af3da70ba5ad6c312 (diff) | |
download | zix-2c00856aa594eeb19dbca5b783815edbd2b282fe.tar.gz zix-2c00856aa594eeb19dbca5b783815edbd2b282fe.tar.bz2 zix-2c00856aa594eeb19dbca5b783815edbd2b282fe.zip |
Fix Wno-implicit-int-conversion warnings
Diffstat (limited to 'test/dict_bench.c')
-rw-r--r-- | test/dict_bench.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/dict_bench.c b/test/dict_bench.c index 92f2e5e..b75ffc7 100644 --- a/test/dict_bench.c +++ b/test/dict_bench.c @@ -67,7 +67,7 @@ main(int argc, char** argv) char* buf = (char*)calloc(1, 1); size_t buf_len = 1; size_t this_str_len = 0; - for (char c; (c = fgetc(fd)) != EOF;) { + for (int c; (c = fgetc(fd)) != EOF;) { if (isspace(c)) { if (this_str_len == 0) { continue; @@ -87,7 +87,7 @@ main(int argc, char** argv) buf_len = this_str_len + 1; buf = (char*)realloc(buf, buf_len); } - buf[this_str_len - 1] = c; + buf[this_str_len - 1] = (char)c; buf[this_str_len] = '\0'; } } |