diff options
Diffstat (limited to 'src/map/mio')
-rw-r--r-- | src/map/mio/mioUtils.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/map/mio/mioUtils.c b/src/map/mio/mioUtils.c index 4241e7b4..57c274ee 100644 --- a/src/map/mio/mioUtils.c +++ b/src/map/mio/mioUtils.c @@ -512,10 +512,13 @@ word Mio_DeriveTruthTable6( Mio_Gate_t * pGate ) { 0xFFFF0000, 0xFFFF0000 }, { 0x00000000, 0xFFFFFFFF } }; - unsigned uTruthRes[2]; + union { + unsigned u[2]; + word w; + } uTruthRes; assert( pGate->nInputs <= 6 ); - Mio_DeriveTruthTable( pGate, uTruths6, pGate->nInputs, 6, uTruthRes ); - return *((word *)uTruthRes); + Mio_DeriveTruthTable( pGate, uTruths6, pGate->nInputs, 6, uTruthRes.u ); + return uTruthRes.w; } #if 0 |