glsl/types.cpp: Fix function_key_compare
authorJason Ekstrand <jason.ekstrand@intel.com>
Tue, 29 Dec 2015 22:32:10 +0000 (14:32 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 29 Dec 2015 22:32:10 +0000 (14:32 -0800)
src/glsl/nir/glsl_types.cpp

index d86609718ea6a53c14fdf082a0c6d113467898b1..71095fa92e4fd4593c47c46f6f53960005fce603 100644 (file)
@@ -1055,7 +1055,7 @@ function_key_compare(const void *a, const void *b)
       return 1;
 
    return memcmp(key1->fields.parameters, key2->fields.parameters,
-                 (key1->length + 1) * sizeof(*key1->fields.parameters));
+                 (key1->length + 1) * sizeof(*key1->fields.parameters)) == 0;
 }