From 7528e2104fdda88a9eca5d84d979a21f5c517dc9 Mon Sep 17 00:00:00 2001 From: Vinson Lee Date: Tue, 7 Aug 2012 00:13:41 -0700 Subject: [PATCH] translate: Fix typo in is_legal_int_format_combo. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Fixes same on both sides defect reported by Coverity. Signed-off-by: Vinson Lee Reviewed-by: José Fonseca --- src/gallium/auxiliary/translate/translate_generic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/auxiliary/translate/translate_generic.c b/src/gallium/auxiliary/translate/translate_generic.c index 0b6ebf5dabe..72099af6a9d 100644 --- a/src/gallium/auxiliary/translate/translate_generic.c +++ b/src/gallium/auxiliary/translate/translate_generic.c @@ -773,7 +773,7 @@ is_legal_int_format_combo( const struct util_format_description *src, for (i = 0; i < nr; i++) { /* The signs must match. */ - if (src->channel[i].type != src->channel[i].type) { + if (src->channel[i].type != dst->channel[i].type) { return FALSE; } -- 2.30.2