Skip to content
This repository has been archived by the owner on Jan 27, 2021. It is now read-only.

Commit

Permalink
Merge pull request keenerd#5 from rxseger/negativeshift
Browse files Browse the repository at this point in the history
Fix clang warning about shifting a negative signed value
  • Loading branch information
jpoirier authored Jul 2, 2016
2 parents 333af8d + 94a55d9 commit eaae819
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rtl_fm.c
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,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) {
Expand Down

0 comments on commit eaae819

Please sign in to comment.