summaryrefslogtreecommitdiff
path: root/src/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util.c')
-rwxr-xr-xsrc/util.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/util.c b/src/util.c
index 9b24f0a..a8ecc3c 100755
--- a/src/util.c
+++ b/src/util.c
@@ -881,6 +881,7 @@ Return value:
ASSERT(*pSpinlock == 1);
u = LockCompareExchange(pSpinlock, 0, 1);
ASSERT(u == 1);
+ (void)u;
}
@@ -1154,7 +1155,7 @@ UtilPanic(ULONG uPanicCode,
case GOT_ILLEGAL_MOVE_WHILE_PONDERING:
case CANNOT_OFFICIALLY_MAKE_MOVE:
DumpPosition(pos);
- DumpMove((ULONG)arg1);
+ DumpMove((ULONG)(size_t)arg1);
break;
case INITIALIZATION_FAILURE:
Bug("%s\n", (char *)arg1);