Commit 9a6f4dd7 authored by qrczak's avatar qrczak
Browse files

[project @ 2001-08-18 11:55:48 by qrczak]

Use char * instead of void * for pointer arithmetic.
parent aea9f10b
/* ----------------------------------------------------------------------------- /* -----------------------------------------------------------------------------
* $Id: PrimOps.h,v 1.81 2001/08/17 17:18:53 apt Exp $ * $Id: PrimOps.h,v 1.82 2001/08/18 11:55:48 qrczak Exp $
* *
* (c) The GHC Team, 1998-2000 * (c) The GHC Team, 1998-2000
* *
...@@ -243,8 +243,8 @@ typedef union { ...@@ -243,8 +243,8 @@ typedef union {
-------------------------------------------------------------------------- */ -------------------------------------------------------------------------- */
#define nullAddrzh(r,i) r=(A_)(0) #define nullAddrzh(r,i) r=(A_)(0)
#define plusAddrzh(r,a,i) r=((void *)(a)) + (i) #define plusAddrzh(r,a,i) r=((char *)(a)) + (i)
#define minusAddrzh(r,a,b) r=((void *)(a)) - ((void *)(b)) #define minusAddrzh(r,a,b) r=((char *)(a)) - ((char *)(b))
#define remAddrzh(r,a,i) r=((W_)(a))%(i) #define remAddrzh(r,a,i) r=((W_)(a))%(i)
#define int2Addrzh(r,a) r=(A_)(a) #define int2Addrzh(r,a) r=(A_)(a)
#define addr2Intzh(r,a) r=(I_)(a) #define addr2Intzh(r,a) r=(I_)(a)
......
Supports Markdown
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