From: Jason Ekstrand Date: Tue, 29 Dec 2015 22:32:10 +0000 (-0800) Subject: glsl/types.cpp: Fix function_key_compare X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=37a38548d467ea78ac25e88d505c8cf4fd1a979b;p=mesa.git glsl/types.cpp: Fix function_key_compare --- diff --git a/src/glsl/nir/glsl_types.cpp b/src/glsl/nir/glsl_types.cpp index d86609718ea..71095fa92e4 100644 --- a/src/glsl/nir/glsl_types.cpp +++ b/src/glsl/nir/glsl_types.cpp @@ -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; }