diff options
author | Igor B. Poretsky <poretsky@mlbox.ru> | 2017-02-13 19:07:52 +0300 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2019-08-09 06:57:03 +0200 |
commit | 3fffabf50d5597812ffa4381ac70dd6e2af6b392 (patch) | |
tree | 721c34fbfa3882d5eb2356a2cde3b21f12509f12 | |
parent | 20798aaa1cf5ce66dcee302d7248a6aafc6ca757 (diff) | |
download | rockbox-3fffabf50d5597812ffa4381ac70dd6e2af6b392.tar.gz rockbox-3fffabf50d5597812ffa4381ac70dd6e2af6b392.zip |
Negative values speaking fix for some certain situations
-rw-r--r-- | apps/talk.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/talk.h b/apps/talk.h index c298476b0c..e8a8645326 100644 --- a/apps/talk.h +++ b/apps/talk.h | |||
@@ -61,7 +61,7 @@ enum { | |||
61 | 61 | ||
62 | /* make a "talkable" ID from number + unit | 62 | /* make a "talkable" ID from number + unit |
63 | unit is upper 4 bits, number the remaining (in regular 2's complement) */ | 63 | unit is upper 4 bits, number the remaining (in regular 2's complement) */ |
64 | #define TALK_ID(n,u) (((long)(u))<<UNIT_SHIFT | ((n) & ~(-1L<<UNIT_SHIFT))) | 64 | #define TALK_ID(n,u) (((long)(u))<<UNIT_SHIFT | ((n) & ~(-1L<<DECIMAL_SHIFT))) |
65 | 65 | ||
66 | /* make a "talkable" ID from a decimal number + unit, the decimal number | 66 | /* make a "talkable" ID from a decimal number + unit, the decimal number |
67 | is represented like x*10^d where d is the number of decimal digits */ | 67 | is represented like x*10^d where d is the number of decimal digits */ |