translate: Fix typo in is_legal_int_format_combo.
authorVinson Lee <vlee@freedesktop.org>
Tue, 7 Aug 2012 07:13:41 +0000 (00:13 -0700)
committerVinson Lee <vlee@freedesktop.org>
Wed, 8 Aug 2012 05:34:28 +0000 (22:34 -0700)
Fixes same on both sides defect reported by Coverity.

Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: José Fonseca <jfonseca@vmware.com>
src/gallium/auxiliary/translate/translate_generic.c

index 0b6ebf5dabe383771adcfeca32475569b03bae9a..72099af6a9dd2db3840b184a992e3cc5fced4f19 100644 (file)
@@ -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;
       }