瀏覽代碼

* do a 32-bit comparison on far and huge pointers

git-svn-id: trunk@25110 -
nickysn 12 年之前
父節點
當前提交
2a64ba0ad3
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      compiler/i8086/n8086add.pas

+ 1 - 1
compiler/i8086/n8086add.pas

@@ -583,7 +583,7 @@ interface
 
     procedure ti8086addnode.second_cmpordinal;
       begin
-        if is_32bit(left.resultdef) then
+        if is_32bit(left.resultdef) or is_farpointer(left.resultdef) or is_hugepointer(left.resultdef) then
           second_cmp32bit
         else
           inherited second_cmpordinal;