discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Discuss-gnuradio] [PATCH] Fix for warning


From: philip
Subject: [Discuss-gnuradio] [PATCH] Fix for warning
Date: Mon, 3 Oct 2011 16:06:57 -0400

From: Philip Balister <address@hidden>

Here is a proposed fix for a compile warning on 32 bit machines. I am
interested in feedback on how I replace the shift with 2^(NBITS-1). I
don't see any reason to keep teh shift, since the compiler should do the
math at compile time. I am a little worried about the NBITS=32 case and how
is implicitedly converted to a float.

Philip Balister (1):
  audio_alsa_sink : Fix warning on 32 bit builds.

 gr-audio/lib/alsa/audio_alsa_sink.cc |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

-- 
1.7.6.4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]