lfocontrolsource: fix clang compiler warning
authorTim-Philipp Müller <tim.muller@collabora.co.uk>
Tue, 13 Sep 2011 22:04:09 +0000 (23:04 +0100)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Tue, 13 Sep 2011 22:04:09 +0000 (23:04 +0100)
commit46e401b6d940c99bf1b5b0a3ba33f7a29a6a29b3
treec176692015abd1bfe20842af377d38e0f350b373
parent1051eddd4ca117fd8bc4bf013503fb6fb3075fd4
lfocontrolsource: fix clang compiler warning

Cast enum to int before checking for negative values, which are
impossible according to the enum list.

gstlfocontrolsource.c:652:45: error: comparison of unsigned enum expression < 0
      is always false [-Werror,-Wtautological-compare]
  if (waveform >= num_waveforms || waveform < 0) {
                                   ~~~~~~~~ ^ ~

https://bugzilla.gnome.org/show_bug.cgi?id=653137
libs/gst/controller/gstlfocontrolsource.c