From 41737f12f99c9ea776f7658b93e5b03ffc8f120b Mon Sep 17 00:00:00 2001
From: Simon Marlow <marlowsd@gmail.com>
Date: Fri, 7 Sep 2012 13:55:11 +0100
Subject: Deprecate lnat, and use StgWord instead

lnat was originally "long unsigned int" but we were using it when we
wanted a 64-bit type on a 64-bit machine.  This broke on Windows x64,
where long == int == 32 bits.  Using types of unspecified size is bad,
but what we really wanted was a type with N bits on an N-bit machine.
StgWord is exactly that.

lnat was mentioned in some APIs that clients might be using
(e.g. StackOverflowHook()), so we leave it defined but with a comment
to say that it's deprecated.
---
 rts/parallel/ParTicky.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'rts/parallel')

diff --git a/rts/parallel/ParTicky.c b/rts/parallel/ParTicky.c
index 5f3e3e323c..07e3ba9390 100644
--- a/rts/parallel/ParTicky.c
+++ b/rts/parallel/ParTicky.c
@@ -30,8 +30,8 @@ extern double ElapsedTimeStart;
 extern StgWord64 GC_tot_alloc;
 extern StgWord64 GC_tot_copied;
 
-extern lnat MaxResidency;     /* in words; for stats only */
-extern lnat ResidencySamples; /* for stats only */
+extern W_ MaxResidency;     /* in words; for stats only */
+extern W_ ResidencySamples; /* for stats only */
 
 /* ngIplu' {Stats.c}vo' */
 #define BIG_STRING_LEN              512
-- 
cgit v1.2.1