瀏覽代碼

* don't call swapendian for shortint (it's 1 byte -> upcast to word and then
swapped, which is wrong)

git-svn-id: trunk@25949 -

Jonas Maebe 12 年之前
父節點
當前提交
98a230d20f
共有 1 個文件被更改,包括 0 次插入3 次删除
  1. 0 3
      compiler/scanner.pas

+ 0 - 3
compiler/scanner.pas

@@ -2715,9 +2715,6 @@ type
 
     procedure tscannerfile.tokenwriteshortint(val : shortint);
       begin
-{$ifdef FPC_BIG_ENDIAN}
-        val:=swapendian(val);
-{$endif}
         recordtokenbuf.write(val,sizeof(shortint));
       end;