Browse Source

* fix code for big endian systems

pierre 22 years ago
parent
commit
030c97ffb8
1 changed files with 4 additions and 0 deletions
  1. 4 0
      tests/webtbs/tw0882.pp

+ 4 - 0
tests/webtbs/tw0882.pp

@@ -23,7 +23,11 @@ BEGIN
           halt(1);
        {$T-}
         bw:=word(Addr(bb0^[mr.i1])^);
+{$ifndef ENDIAN_BIG}
         if bw <> (2 shl 8 + 1) then
+{$else ENDIAN_BIG}
+        if bw <> (1 shl 8 + 2) then
+{$endif ENDIAN_BIG}
           halt(1);
 END
 .