From d353b92de899110f63667b32644402f135f5b3d3 Mon Sep 17 00:00:00 2001 From: Slava Pestov Date: Thu, 19 May 2005 22:33:02 +0000 Subject: [PATCH] fix win32 compile error --- native/cards.c | 2 +- native/factor.h | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/native/cards.c b/native/cards.c index c490c753ab..4082fc1ca3 100644 --- a/native/cards.c +++ b/native/cards.c @@ -11,7 +11,7 @@ INLINE void collect_card(CARD *ptr, CELL here) if(offset == 0x7f) { if(c == 0xff) - critical_error("bad card",ptr); + critical_error("bad card",(CELL)ptr); else return; } diff --git a/native/factor.h b/native/factor.h index 5228882741..386b350f69 100644 --- a/native/factor.h +++ b/native/factor.h @@ -70,6 +70,8 @@ typedef signed short s16; typedef signed int s32; typedef signed long long s64; +#include + #ifdef WIN32 #include @@ -78,7 +80,6 @@ typedef signed long long s64; #else #include #include - #include #include #include #include