From 0e7b04c84001132246bcc92f6e33642d4e3c834b Mon Sep 17 00:00:00 2001 From: NicJA Date: Mon, 10 Aug 2015 20:59:59 +0000 Subject: [PATCH] delint type punned pointer git-svn-id: https://svn.aros.org/svn/aros/trunk/AROS@51002 fb15a70f-31f2-0310-bbcc-cdcc74a49acc --- compiler/stdc/__vcscan.c | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/compiler/stdc/__vcscan.c b/compiler/stdc/__vcscan.c index a1b554e352..94098bf34b 100644 --- a/compiler/stdc/__vcscan.c +++ b/compiler/stdc/__vcscan.c @@ -31,12 +31,21 @@ extern unsigned char *__decimalpoint; +struct vcs_ieeetype +{ + union + { + double doub; + unsigned char uchar[sizeof(double)]; + }; +}; + #ifdef FULL_SPECIFIERS -const static unsigned char undef[3][sizeof(double)]= /* Undefined numeric values, IEEE */ +const static struct vcs_ieeetype undef[3] = /* Undefined numeric values, IEEE */ { - { 0x7f,0xf0,0x00,0x00,0x00,0x00,0x00,0x00 }, /* +inf */ - { 0xff,0xf0,0x00,0x00,0x00,0x00,0x00,0x00 }, /* -inf */ - { 0x7f,0xf1,0x00,0x00,0x00,0x00,0x00,0x00 } /* NaN */ + { .uchar = { 0x7f,0xf0,0x00,0x00,0x00,0x00,0x00,0x00 }}, /* +inf */ + { .uchar = { 0xff,0xf0,0x00,0x00,0x00,0x00,0x00,0x00 }}, /* -inf */ + { .uchar = { 0x7f,0xf1,0x00,0x00,0x00,0x00,0x00,0x00 }} /* NaN */ }; #endif -- 2.11.4.GIT