Wrong format specifiers break debug build
In rts/Trace.c
, in the function traceCapsetModify_
, the format specifiers were "%d", but they should be "%lu" since StgWord32
and (via that) CapsetID
are typedef'ed to unsigned long
.
The code is conditional, only alive if DEBUG is defined, so it only breaks debug builds. Patch(es) attached.
Trac metadata
Trac field | Value |
---|---|
Version | 7.1 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Runtime System |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |