فهرست منبع

* set expectloc correctly for enumdef comparisons on small CPUs

git-svn-id: branches/z80@45040 -
nickysn 5 سال پیش
والد
کامیت
4ae5b81bff
1فایلهای تغییر یافته به همراه4 افزوده شده و 1 حذف شده
  1. 4 1
      compiler/nadd.pas

+ 4 - 1
compiler/nadd.pas

@@ -4201,7 +4201,10 @@ implementation
 
          else if (ld.typ=enumdef) then
            begin
-              expectloc:=LOC_FLAGS;
+              if tenumdef(ld).size>sizeof(aint) then
+                expectloc:=LOC_JUMP
+              else
+                expectloc:=LOC_FLAGS;
            end
 
 {$ifdef SUPPORT_MMX}