aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2018-04-18 23:58:45 +0200
committerHarald Welte <laforge@gnumonks.org>2018-04-18 23:59:17 +0200
commit5a9864c56da1587a198645427e5f14669b04c991 (patch)
treee183c8c756674243fb562640f9880e0a535d514c
parente92b11bfb79437818037515210dc0f0392a93cde (diff)
fix "-Wshift-negative-value" compiler warning on ggc-7.3.0
-rw-r--r--src/rtl_fm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rtl_fm.c b/src/rtl_fm.c
index d2d011a..b163979 100644
--- a/src/rtl_fm.c
+++ b/src/rtl_fm.c
@@ -503,7 +503,7 @@ int polar_disc_lut(int ar, int aj, int br, int bj)
if (x_abs >= atan_lut_size) {
/* we can use linear range, but it is not necessary */
- return (cj > 0) ? 1<<13 : -1<<13;
+ return (cj > 0) ? 1<<13 : -(1<<13);
}
if (x > 0) {