Skip to content
Snippets Groups Projects
Forked from Glasgow Haskell Compiler / GHC
6088 commits behind, 2 commits ahead of the upstream repository.
  • Simon Marlow's avatar
    9f67d9fe
    Deprecate lnat, and use StgWord instead · 9f67d9fe
    Simon Marlow authored and pcapriotti's avatar pcapriotti committed
    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.
    
    MERGED from commit 41737f12
    9f67d9fe
    History
    Deprecate lnat, and use StgWord instead
    Simon Marlow authored and pcapriotti's avatar pcapriotti committed
    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.
    
    MERGED from commit 41737f12
Code owners
Assign users and groups as approvers for specific file changes. Learn more.