mesa: fix (harmless?) assignment in assert
authorKeith Whitwell <keith@tungstengraphics.com>
Thu, 13 Mar 2008 10:14:21 +0000 (10:14 +0000)
committerKeith Whitwell <keith@tungstengraphics.com>
Thu, 13 Mar 2008 10:14:21 +0000 (10:14 +0000)
src/mesa/shader/slang/slang_codegen.c

index 767ba3f..0de2b0a 100644 (file)
@@ -1087,7 +1087,7 @@ slang_inline_function_call(slang_assemble_ctx * A, slang_function *fun,
    slang_operation_copy(inlined, fun->body);
 
    /*** XXX review this */
-   assert(inlined->type = SLANG_OPER_BLOCK_NO_NEW_SCOPE);
+   assert(inlined->type == SLANG_OPER_BLOCK_NO_NEW_SCOPE);
    inlined->type = SLANG_OPER_BLOCK_NEW_SCOPE;
 
 #if 0