summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIgor B. Poretsky <poretsky@mlbox.ru>2017-02-13 19:07:52 +0300
committerSolomon Peachy <pizza@shaftnet.org>2019-08-09 06:57:03 +0200
commit3fffabf50d5597812ffa4381ac70dd6e2af6b392 (patch)
tree721c34fbfa3882d5eb2356a2cde3b21f12509f12
parent20798aaa1cf5ce66dcee302d7248a6aafc6ca757 (diff)
downloadrockbox-3fffabf50d5597812ffa4381ac70dd6e2af6b392.tar.gz
rockbox-3fffabf50d5597812ffa4381ac70dd6e2af6b392.tar.bz2
rockbox-3fffabf50d5597812ffa4381ac70dd6e2af6b392.zip
Negative values speaking fix for some certain situations
-rw-r--r--apps/talk.h2
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 {
/* make a "talkable" ID from number + unit
unit is upper 4 bits, number the remaining (in regular 2's complement) */
-#define TALK_ID(n,u) (((long)(u))<<UNIT_SHIFT | ((n) & ~(-1L<<UNIT_SHIFT)))
+#define TALK_ID(n,u) (((long)(u))<<UNIT_SHIFT | ((n) & ~(-1L<<DECIMAL_SHIFT)))
/* make a "talkable" ID from a decimal number + unit, the decimal number
is represented like x*10^d where d is the number of decimal digits */