From: qrczak Date: Mon, 2 Apr 2001 07:24:12 +0000 (+0000) Subject: [project @ 2001-04-02 07:24:12 by qrczak] X-Git-Tag: Approximately_9120_patches~2234 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=0073a23333ba824b5c13b252c78530a5e1334e68;p=ghc-hetmet.git [project @ 2001-04-02 07:24:12 by qrczak] Don't cast pointers to ints to perform pointer arithmetic. --- diff --git a/ghc/includes/TSO.h b/ghc/includes/TSO.h index 6630581..71439a8 100644 --- a/ghc/includes/TSO.h +++ b/ghc/includes/TSO.h @@ -1,5 +1,5 @@ /* ----------------------------------------------------------------------------- - * $Id: TSO.h,v 1.20 2001/03/22 03:51:09 hwloidl Exp $ + * $Id: TSO.h,v 1.21 2001/04/02 07:24:12 qrczak Exp $ * * (c) The GHC Team, 1998-1999 * @@ -267,7 +267,7 @@ typedef struct StgTSO_ { extern StgTSO dummy_tso; #define TSO_STRUCT_SIZE \ - ((int)&(dummy_tso).stack - (int)&(dummy_tso).header) + ((char *)&dummy_tso.stack - (char *)&dummy_tso.header) #define TSO_STRUCT_SIZEW (TSO_STRUCT_SIZE / sizeof(W_))