diff options
author | Michael Sevakis <jethead71@rockbox.org> | 2012-01-13 17:54:43 -0500 |
---|---|---|
committer | Michael Sevakis <jethead71@rockbox.org> | 2012-01-13 17:54:43 -0500 |
commit | b17bdb93493eec82fa60f5e0f008aa292aed6f10 (patch) | |
tree | 8813e0caf7cc8ffd8ab3c31cfb59588a43410d40 /apps/tdspeed.c | |
parent | e4a576214799f12b175384ec53a00df6f2265b19 (diff) | |
download | rockbox-b17bdb93493eec82fa60f5e0f008aa292aed6f10.tar.gz rockbox-b17bdb93493eec82fa60f5e0f008aa292aed6f10.zip |
tdspeed: Use "INT64_MAX" instead of "~(1ll << 63)" to get the maximum int64_t value.
Change-Id: I0830b3276eecb52e0f52599126fd23f95d0742aa
Diffstat (limited to 'apps/tdspeed.c')
-rw-r--r-- | apps/tdspeed.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/tdspeed.c b/apps/tdspeed.c index f07b3417c7..731be12621 100644 --- a/apps/tdspeed.c +++ b/apps/tdspeed.c | |||
@@ -290,7 +290,7 @@ static int tdspeed_apply(int32_t *buf_out[2], int32_t *buf_in[2], | |||
290 | int const INC1 = 8; | 290 | int const INC1 = 8; |
291 | int const INC2 = 32; | 291 | int const INC2 = 32; |
292 | 292 | ||
293 | int64_t min_delta = ~(1ll << 63); /* most positive */ | 293 | int64_t min_delta = INT64_MAX; /* most positive */ |
294 | int shift = 0; | 294 | int shift = 0; |
295 | 295 | ||
296 | /* Power of 2 of a 28bit number requires 56bits, can accumulate | 296 | /* Power of 2 of a 28bit number requires 56bits, can accumulate |