diff options
Diffstat (limited to 'apps')
-rw-r--r-- | apps/gui/pitchscreen.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/gui/pitchscreen.c b/apps/gui/pitchscreen.c index 204a1cd35f..8215da2a97 100644 --- a/apps/gui/pitchscreen.c +++ b/apps/gui/pitchscreen.c | |||
@@ -84,9 +84,9 @@ enum | |||
84 | the last digit). | 84 | the last digit). |
85 | */ | 85 | */ |
86 | #define TO_INT_WITH_PRECISION(x) \ | 86 | #define TO_INT_WITH_PRECISION(x) \ |
87 | ( (int)(((x) * PITCH_SPEED_PRECISION * 10 + 5) / 10) ) | 87 | ( (unsigned short)(((x) * PITCH_SPEED_PRECISION * 10 + 5) / 10) ) |
88 | 88 | ||
89 | static const int semitone_table[] = | 89 | static const unsigned short semitone_table[] = |
90 | { | 90 | { |
91 | TO_INT_WITH_PRECISION(50.00000000), /* Octave lower */ | 91 | TO_INT_WITH_PRECISION(50.00000000), /* Octave lower */ |
92 | TO_INT_WITH_PRECISION(52.97315472), | 92 | TO_INT_WITH_PRECISION(52.97315472), |
@@ -127,7 +127,7 @@ static const int semitone_table[] = | |||
127 | x(n) = 100 * 2^(n * 20/1200) | 127 | x(n) = 100 * 2^(n * 20/1200) |
128 | */ | 128 | */ |
129 | 129 | ||
130 | static const int cent_interp[] = | 130 | static const unsigned short cent_interp[] = |
131 | { | 131 | { |
132 | TO_INT_WITH_PRECISION(100.0000000), | 132 | TO_INT_WITH_PRECISION(100.0000000), |
133 | TO_INT_WITH_PRECISION(101.1619440), | 133 | TO_INT_WITH_PRECISION(101.1619440), |