Scrutinize use of 'long' in rts/
In commit 53055bb5 (#5656 (closed)), several uses of int
in the rts were replaced by long
, to avoid potential overflows for some calculations. On Windows though, int
and long
have the same size (4 bytes).
Carefully go through all uses of long
in rts/
, and replace by one of the types from includes/stg/Types.h
:
-
long
->StgInt
orStgInt64
-
unsigned long
->StgWord
orStgWord64
Trac metadata
Trac field | Value |
---|---|
Version | 7.10.3 |
Type | Task |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Runtime System |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | simonmar |
Operating system | |
Architecture |