[project @ 2000-06-12 11:04:12 by simonmar]
authorsimonmar <unknown>
Mon, 12 Jun 2000 11:04:12 +0000 (11:04 +0000)
committersimonmar <unknown>
Mon, 12 Jun 2000 11:04:12 +0000 (11:04 +0000)
commit6f0e4c4d40697af1e63d0feb01b6a1accd128ef8
tree423f7982b4fe28d32de9a64197453554ec5dedf4
parent4d0f4a6957c00b3e54c2d468feb3ecf3e00e469e
[project @ 2000-06-12 11:04:12 by simonmar]
Fix a nasty bug: the 'c' component of StgUnion was declared as type
StgChar, which sounds reasonable, but meant that when assigning a char
to R1 gcc would correctly arrange to only overwrite the low byte
rather than zero-extending the value.  We assume elsewhere that when
R1 contains a char that the upper 24 bits are zero, so this was wrong.

This bug must have been around for a *long* time, strange that it only
just showed up. <shrug>
ghc/includes/StgTypes.h