Преглед изворни кода

* 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}