glsl: fix MSVC int->bool conversion warning
authorBrian Paul <brianp@vmware.com>
Tue, 29 Oct 2013 20:09:46 +0000 (14:09 -0600)
committerBrian Paul <brianp@vmware.com>
Thu, 31 Oct 2013 14:21:58 +0000 (08:21 -0600)
src/glsl/glsl_types.h

index fdb1f3a6efbf0c099e24e99208b53cd9adc8bffc..96eee5e64eb69b483512fed80187fa1feec90fde 100644 (file)
@@ -459,7 +459,7 @@ struct glsl_type {
     */
    bool contains_atomic() const
    {
-      return atomic_size();
+      return atomic_size() > 0;
    }
 
    /**