From 53f56234adb3e0595483e76a0e6625ecc13ef43a Mon Sep 17 00:00:00 2001 From: sewardj Date: Mon, 13 Mar 2000 10:39:11 +0000 Subject: [PATCH] [project @ 2000-03-13 10:39:11 by sewardj] Clean up a couple of compilation warnings. --- ghc/rts/Evaluator.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/ghc/rts/Evaluator.c b/ghc/rts/Evaluator.c index b8a5c3b..7aef8ef 100644 --- a/ghc/rts/Evaluator.c +++ b/ghc/rts/Evaluator.c @@ -5,8 +5,8 @@ * Copyright (c) 1994-1998. * * $RCSfile: Evaluator.c,v $ - * $Revision: 1.37 $ - * $Date: 2000/03/13 10:30:25 $ + * $Revision: 1.38 $ + * $Date: 2000/03/13 10:39:11 $ * ---------------------------------------------------------------------------*/ #include "Rts.h" @@ -2122,14 +2122,14 @@ static StgClosure* makeErrorCall ( const char* msg ) StgPtr CreateByteArrayToHoldInteger ( int nbytes ) { - StgInt words = (nbytes+sizeof(W_)-1)/sizeof(W_); + StgWord words = (nbytes+sizeof(W_)-1)/sizeof(W_); StgWord size = sizeofW(StgArrWords) + words; StgArrWords* arr = (StgArrWords*)allocate(size); SET_HDR(arr,&ARR_WORDS_info,CCCS); arr->words = words; - ASSERT(nbytes <= arr->words * sizeof(W_)); + ASSERT((W_)nbytes <= arr->words * sizeof(W_)); #ifdef DEBUG - {nat i; + {StgWord i; for (i = 0; i < words; ++i) { arr->payload[i] = 0xdeadbeef; }} @@ -2216,7 +2216,7 @@ void SloppifyIntegerEnd ( StgPtr arr0 ) } -void myStackCheck ( Capability* cap ) +static void myStackCheck ( Capability* cap ) { /* fprintf(stderr, "myStackCheck\n"); */ if (!(gSpLim <= gSp && gSp <= stgCast(StgPtr,gSu))) { @@ -2968,7 +2968,7 @@ static void* enterBCO_primop2 ( int primop2code, */ PushCPtr((StgClosure*)(*bco)); *return2 = ThreadBlocked; - return (void*)(1+(NULL)); + return (void*)(1+(char*)(NULL)); } else { PushCPtr(mvar->value); -- 1.7.10.4