diff options
| author | Charles.Forsyth <devnull@localhost> | 2008-07-03 13:47:22 +0000 |
|---|---|---|
| committer | Charles.Forsyth <devnull@localhost> | 2008-07-03 13:47:22 +0000 |
| commit | af3b6167bf93b1526982d7adfc2d48b8f06432ae (patch) | |
| tree | ba056c6d0cf02838741fba1834b680584159893e | |
| parent | fb67f84de5f6afd71842d1609df0f26d4c16f798 (diff) | |
20080703-1447
| -rw-r--r-- | CHANGES | 2 | ||||
| -rw-r--r-- | emu/Nt/vlrt.c | 21 | ||||
| -rw-r--r-- | include/version.h | 2 |
3 files changed, 7 insertions, 18 deletions
@@ -1,3 +1,5 @@ +20080703 + remove anonymous unions (and unused structs) from unpacking structures in emu/Nt/vlrt.c, not that it's used 20080617 win-x11a.c add sqweek's change to pass on KeyRelease values (but perhaps 1-byte values are no longer enough?) 20080614 diff --git a/emu/Nt/vlrt.c b/emu/Nt/vlrt.c index c9ef9c9a..43313a29 100644 --- a/emu/Nt/vlrt.c +++ b/emu/Nt/vlrt.c @@ -13,21 +13,8 @@ typedef struct Vlong Vlong; struct Vlong { - union - { - struct - { - ulong lo; - ulong hi; - }; - struct - { - ushort lols; - ushort loms; - ushort hils; - ushort hims; - }; - }; + ulong lo; + ulong hi; }; void abort(void); @@ -102,11 +89,11 @@ _mulv(Vlong *r, Vlong a, Vlong b) void _d2v(Vlong *y, double d) { - union { double d; struct Vlong; } x; + Vlong x; ulong xhi, xlo, ylo, yhi; int sh; - x.d = d; + *(double*)&x = d; xhi = (x.hi & 0xfffff) | 0x100000; xlo = x.lo; diff --git a/include/version.h b/include/version.h index d1ac9eb1..20122cdb 100644 --- a/include/version.h +++ b/include/version.h @@ -1 +1 @@ -#define VERSION "Fourth Edition (20080629)" +#define VERSION "Fourth Edition (20080703)" |
