summaryrefslogtreecommitdiff
path: root/rts/Hpc.c
diff options
context:
space:
mode:
authorErik de Castro Lopo <erikd@mega-nerd.com>2016-05-02 06:37:14 +1000
committerErik de Castro Lopo <erikd@mega-nerd.com>2016-05-05 08:29:27 +1000
commitdb9de7eb3e91820024f673bfdb6fb8064cfed20d (patch)
tree5e1c3ef0b6dee7f40fedbc118ba36cfe6ffdd1ee /rts/Hpc.c
parentad4392c142696d5092533480a82ed65322e9d413 (diff)
downloadhaskell-db9de7eb3e91820024f673bfdb6fb8064cfed20d.tar.gz
rts: Replace `nat` with `uint32_t`
The `nat` type was an alias for `unsigned int` with a comment saying it was at least 32 bits. We keep the typedef in case client code is using it but mark it as deprecated. Test Plan: Validated on Linux, OS X and Windows Reviewers: simonmar, austin, thomie, hvr, bgamari, hsyl20 Differential Revision: https://phabricator.haskell.org/D2166
Diffstat (limited to 'rts/Hpc.c')
-rw-r--r--rts/Hpc.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/rts/Hpc.c b/rts/Hpc.c
index 20ef91f5f6..b2228162f7 100644
--- a/rts/Hpc.c
+++ b/rts/Hpc.c
@@ -257,7 +257,7 @@ hs_hpc_module(char *modName,
StgWord64 *tixArr)
{
HpcModuleInfo *tmpModule;
- nat i;
+ uint32_t i;
if (moduleHash == NULL) {
moduleHash = allocStrHashTable();
@@ -332,12 +332,12 @@ writeTix(FILE *f) {
}
fprintf(f," TixModule \"%s\" %u %u [",
tmpModule->modName,
- (nat)tmpModule->hashNo,
- (nat)tmpModule->tickCount);
+ (uint32_t)tmpModule->hashNo,
+ (uint32_t)tmpModule->tickCount);
debugTrace(DEBUG_hpc,"%s: %u (hash=%u)\n",
tmpModule->modName,
- (nat)tmpModule->tickCount,
- (nat)tmpModule->hashNo);
+ (uint32_t)tmpModule->tickCount,
+ (uint32_t)tmpModule->hashNo);
inner_comma = 0;
for(i = 0;i < tmpModule->tickCount;i++) {