浏览代码

* fix code for big endian systems

pierre 23 年之前
父节点
当前提交
030c97ffb8
共有 1 个文件被更改,包括 4 次插入0 次删除
  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
 .