From 41737f12f99c9ea776f7658b93e5b03ffc8f120b Mon Sep 17 00:00:00 2001 From: Simon Marlow 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/Disassembler.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rts/Disassembler.c') diff --git a/rts/Disassembler.c b/rts/Disassembler.c index 033af11f64..7059d8b018 100644 --- a/rts/Disassembler.c +++ b/rts/Disassembler.c @@ -80,7 +80,7 @@ disInstr ( StgBCO *bco, int pc ) pc += 1; break; case bci_STKCHECK: { StgWord stk_words_reqd = BCO_GET_LARGE_ARG + 1; - debugBelch("STKCHECK %" FMT_SizeT "\n", (lnat)stk_words_reqd ); + debugBelch("STKCHECK %" FMT_SizeT "\n", (W_)stk_words_reqd ); break; } case bci_PUSH_L: -- cgit v1.2.1