diff options
| author | Richard Brooksby | 2012-09-12 19:45:27 +0100 |
|---|---|---|
| committer | Richard Brooksby | 2012-09-12 19:45:27 +0100 |
| commit | 513aabb046ca6417eea1355428d212e1f3a1573d (patch) | |
| tree | 60b30213ec2e2b381f569fb4608f91e1abbdf227 /mps/code/format.c | |
| parent | 9248316fb65eeafb7749b3879b81459f87bd9f54 (diff) | |
| download | emacs-513aabb046ca6417eea1355428d212e1f3a1573d.tar.gz emacs-513aabb046ca6417eea1355428d212e1f3a1573d.zip | |
Further elimination of type puns that violate the strict aliasing rule. this change eliminates puns on the format methods.
Copied from Perforce
Change: 179452
ServerID: perforce.ravenbrook.com
Diffstat (limited to 'mps/code/format.c')
| -rw-r--r-- | mps/code/format.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/mps/code/format.c b/mps/code/format.c index 5155a740eb5..9867f562167 100644 --- a/mps/code/format.c +++ b/mps/code/format.c | |||
| @@ -40,11 +40,11 @@ Bool FormatCheck(Format format) | |||
| 40 | } | 40 | } |
| 41 | 41 | ||
| 42 | 42 | ||
| 43 | static Addr FormatDefaultClass(Addr object) | 43 | static mps_addr_t FormatDefaultClass(mps_addr_t object) |
| 44 | { | 44 | { |
| 45 | AVER(object != NULL); | 45 | AVER(object != NULL); |
| 46 | 46 | ||
| 47 | return ((Addr *)object)[0]; | 47 | return ((mps_addr_t *)object)[0]; |
| 48 | } | 48 | } |
| 49 | 49 | ||
| 50 | 50 | ||
| @@ -53,13 +53,13 @@ static Addr FormatDefaultClass(Addr object) | |||
| 53 | Res FormatCreate(Format *formatReturn, Arena arena, | 53 | Res FormatCreate(Format *formatReturn, Arena arena, |
| 54 | Align alignment, | 54 | Align alignment, |
| 55 | FormatVariety variety, | 55 | FormatVariety variety, |
| 56 | FormatScanMethod scan, | 56 | mps_fmt_scan_t scan, |
| 57 | FormatSkipMethod skip, | 57 | mps_fmt_skip_t skip, |
| 58 | FormatMoveMethod move, | 58 | mps_fmt_fwd_t move, |
| 59 | FormatIsMovedMethod isMoved, | 59 | mps_fmt_isfwd_t isMoved, |
| 60 | FormatCopyMethod copy, | 60 | mps_fmt_copy_t copy, |
| 61 | FormatPadMethod pad, | 61 | mps_fmt_pad_t pad, |
| 62 | FormatClassMethod class, | 62 | mps_fmt_class_t class, |
| 63 | Size headerSize) | 63 | Size headerSize) |
| 64 | { | 64 | { |
| 65 | Format format; | 65 | Format format; |