]> gitweb.factorcode.org Git - factor.git/blobdiff - vm/cpu-ppc.hpp
vm: replace assert with FACTOR_ASSERT
[factor.git] / vm / cpu-ppc.hpp
index 80eb7fb1d843e6dbbb32e7207101ec021bc6e30b..abaa965065cdc2bc494ce36633c05d0156dbacbf 100644 (file)
@@ -22,9 +22,9 @@ inline static void check_call_site(cell return_address)
 {
        u32 insn = *(u32 *)return_address;
        /* Check that absolute bit is 0 */
-       assert((insn & 0x2) == 0x0);
+       FACTOR_ASSERT((insn & 0x2) == 0x0);
        /* Check that instruction is branch */
-       assert((insn >> 26) == 0x12);
+       FACTOR_ASSERT((insn >> 26) == 0x12);
 }
 
 static const u32 b_mask = 0x3fffffc;