From 37a38548d467ea78ac25e88d505c8cf4fd1a979b Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Tue, 29 Dec 2015 14:32:10 -0800 Subject: [PATCH] glsl/types.cpp: Fix function_key_compare --- src/glsl/nir/glsl_types.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.30.2