diff options
author | Erik de Castro Lopo <erikd@mega-nerd.com> | 2016-05-02 06:37:14 +1000 |
---|---|---|
committer | Erik de Castro Lopo <erikd@mega-nerd.com> | 2016-05-05 08:29:27 +1000 |
commit | db9de7eb3e91820024f673bfdb6fb8064cfed20d (patch) | |
tree | 5e1c3ef0b6dee7f40fedbc118ba36cfe6ffdd1ee /rts/LdvProfile.c | |
parent | ad4392c142696d5092533480a82ed65322e9d413 (diff) | |
download | haskell-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/LdvProfile.c')
-rw-r--r-- | rts/LdvProfile.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/rts/LdvProfile.c b/rts/LdvProfile.c index 4a2ee42424..1dfdc56b34 100644 --- a/rts/LdvProfile.c +++ b/rts/LdvProfile.c @@ -27,10 +27,10 @@ * closure. Returns the size of the closure, including the profiling * header portion, so that the caller can find the next closure. * ----------------------------------------------------------------------- */ -STATIC_INLINE nat +STATIC_INLINE uint32_t processHeapClosureForDead( StgClosure *c ) { - nat size; + uint32_t size; const StgInfoTable *info; info = get_itbl(c); @@ -216,9 +216,9 @@ processChainForDead( bdescr *bd ) * have just been garbage collected. * ----------------------------------------------------------------------- */ void -LdvCensusForDead( nat N ) +LdvCensusForDead( uint32_t N ) { - nat g; + uint32_t g; // ldvTime == 0 means that LDV profiling is currently turned off. if (era == 0) |