From 0073a23333ba824b5c13b252c78530a5e1334e68 Mon Sep 17 00:00:00 2001 From: qrczak Date: Mon, 2 Apr 2001 07:24:12 +0000 Subject: [PATCH] [project @ 2001-04-02 07:24:12 by qrczak] Don't cast pointers to ints to perform pointer arithmetic. --- ghc/includes/TSO.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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_)) -- 1.7.10.4