summaryrefslogtreecommitdiff
path: root/Build/source/utils/asymptote/prc/PRCbitStream.cc
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/utils/asymptote/prc/PRCbitStream.cc')
-rw-r--r--Build/source/utils/asymptote/prc/PRCbitStream.cc14
1 files changed, 7 insertions, 7 deletions
diff --git a/Build/source/utils/asymptote/prc/PRCbitStream.cc b/Build/source/utils/asymptote/prc/PRCbitStream.cc
index 2aa6d73ce98..5df27320e45 100644
--- a/Build/source/utils/asymptote/prc/PRCbitStream.cc
+++ b/Build/source/utils/asymptote/prc/PRCbitStream.cc
@@ -198,22 +198,22 @@ PRCbitStream& PRCbitStream::operator <<(double value)
writeBit(1);
-#if defined(WORDS_LITTLE_ENDIAN)
- pb=((PRCbyte *)&value)+6;
-#elif defined(WORDS_BIG_ENDIAN)
+#ifdef WORDS_BIGENDIAN
pb=((PRCbyte *)&value)+1;
+#else
+ pb=((PRCbyte *)&value)+6;
#endif
//add_bits((*pb)&0x0f,4 STAT_V STAT_DOUBLE);
writeBits((*pb)&0x0F,4);
NEXTBYTE(pb);
pbStart=pb;
-#if defined(WORDS_LITTLE_ENDIAN)
- pbEnd=
- pbStop= ((PRCbyte *)&value);
-#elif defined(WORDS_BIG_ENDIAN)
+#ifdef WORDS_BIGENDIAN
pbEnd=
pbStop= ((PRCbyte *)(&value+1))-1;
+#else
+ pbEnd=
+ pbStop= ((PRCbyte *)&value);
#endif
if((fSaveAtEnd=(*pbStop!=*BEFOREBYTE(pbStop)))!=0)