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 767ba3ffb439088821d6f3e1837ae9239e54a823..0de2b0a57ea28b6402a6715d0690747f90904b06 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