diff options
author | W. Felix Handte <w@felixhandte.com> | 2018-04-11 16:39:31 (GMT) |
---|---|---|
committer | W. Felix Handte <w@felixhandte.com> | 2018-04-20 00:45:48 (GMT) |
commit | 9dae661b1fcc665a78a9de5341e651310d489f5c (patch) | |
tree | 9ad1ab351c5449816bf35f639af75f785858e6df /tests/framebench.c | |
parent | f646c512e99032cf4545be1ffcfd2a17323fb586 (diff) | |
download | lz4-9dae661b1fcc665a78a9de5341e651310d489f5c.zip lz4-9dae661b1fcc665a78a9de5341e651310d489f5c.tar.gz lz4-9dae661b1fcc665a78a9de5341e651310d489f5c.tar.bz2 |
Fix Cast
Diffstat (limited to 'tests/framebench.c')
-rw-r--r-- | tests/framebench.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/framebench.c b/tests/framebench.c index 048df34..70cfec5 100644 --- a/tests/framebench.c +++ b/tests/framebench.c @@ -200,7 +200,7 @@ size_t check_lz4f(bench_params_t *p, size_t csize) { uint64_t bench( - char *bench_name, + const char *bench_name, size_t (*fun)(bench_params_t *), size_t (*checkfun)(bench_params_t *, size_t), bench_params_t *params @@ -299,6 +299,7 @@ int main(int argc, char *argv[]) { LZ4F_compressOptions_t options; int clevels[] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12}; + unsigned int clevelidx; bench_params_t params; @@ -386,7 +387,7 @@ int main(int argc, char *argv[]) { params.prefs = &prefs; params.options = &options; - for (unsigned int clevelidx = 0; clevelidx < sizeof(clevels) / sizeof(clevels[0]); clevelidx++) { + for (clevelidx = 0; clevelidx < sizeof(clevels) / sizeof(clevels[0]); clevelidx++) { params.clevel = clevels[clevelidx]; params.prefs->compressionLevel = clevels[clevelidx]; params.cdict = NULL; |