LibtraceTeam / wandio

C library for simple and efficient file IO
GNU Lesser General Public License v3.0
17 stars 13 forks source link

fix formatter warning #37

Closed digizeph closed 5 years ago

digizeph commented 5 years ago

size_t should be formatted with %zu rather than %d

iow-lz4.c:148:96: warning: format specifies type 'int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat]
                        fprintf(stderr, "invalid upper bound calculated by lz4 library: %d\n", upper_bound);
                                                                                        ~~     ^~~~~~~~~~~
                                                                                        %zu
1 warning generated.
salcock commented 5 years ago

Merged into develop branch. Thanks.