summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorleo2001-01-03 13:22:56 +0000
committerleo2001-01-03 13:22:56 +0000
commit8639eb91fed187ed70792883efd8aa29ae5746ac (patch)
tree570f509ad0c7a9a966ed05190cc48265cb9bdf24 /common
parentc050e5b4f2e57eba6ca9ae5b66a701eef9a89dd5 (diff)
Big Endian fixes
git-svn-id: http://svn.leocad.org/trunk@198 c7d43263-9d01-0410-8a33-9dba5d9f93d6
Diffstat (limited to 'common')
-rw-r--r--common/pieceinf.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/common/pieceinf.cpp b/common/pieceinf.cpp
index e1936d3..158a242 100644
--- a/common/pieceinf.cpp
+++ b/common/pieceinf.cpp
@@ -547,7 +547,8 @@ void PieceInfo::LoadInformation()
unsigned long colors, *p;
bytes++;
p = (unsigned long*)bytes;
- colors = GUINT32(*p);
+ *p = GUINT32(*p);
+ colors = *p;
p++;
while (colors--)
@@ -579,7 +580,8 @@ void PieceInfo::LoadInformation()
unsigned short colors, *p;
bytes++;
p = (unsigned short*)bytes;
- colors = GUINT16(*p);
+ *p = GUINT16(*p);
+ colors = *p;
p++;
while (colors--)