2
0
Эх сурвалжийг харах

Fix range check error inside tsuperregisterworklist.addnodup method

Pierre Muller 5 сар өмнө
parent
commit
e1478e27b3
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  1. 1 1
      compiler/cgbase.pas

+ 1 - 1
compiler/cgbase.pas

@@ -595,7 +595,7 @@ implementation
 
     begin
       addnodup := false;
-      if indexword(buf[0],length,s) = -1 then
+      if (length=0) or (indexword(buf[0],length,s) = -1) then
         begin
           add(s);
           addnodup := true;