Browse Source

* internalerror for string to chararray

peter 24 years ago
parent
commit
35a172090a
1 changed files with 9 additions and 2 deletions
  1. 9 2
      compiler/i386/n386cnv.pas

+ 9 - 2
compiler/i386/n386cnv.pas

@@ -374,7 +374,11 @@ implementation
          regstopush: byte;
       begin
          with parraydef(resulttype)^ do
-           arrsize := highrange-lowrange+1;
+          begin
+            if highrange<lowrange then
+             internalerror(75432653);
+            arrsize := highrange-lowrange+1;
+          end;
 
          if (left.nodetype = stringconstn) and
             { left.length+1 since there's always a terminating #0 character (JM) }
@@ -1493,7 +1497,10 @@ begin
 end.
 {
   $Log$
-  Revision 1.11  2000-12-25 00:07:32  peter
+  Revision 1.12  2001-01-08 21:45:11  peter
+    * internalerror for string to chararray
+
+  Revision 1.11  2000/12/25 00:07:32  peter
     + new tlinkedlist class (merge of old tstringqueue,tcontainer and
       tlinkedlist objects)