Commit 0073a233 authored by qrczak's avatar qrczak

[project @ 2001-04-02 07:24:12 by qrczak]

Don't cast pointers to ints to perform pointer arithmetic.
parent c6957c09
/* -----------------------------------------------------------------------------
* $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_))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment