Browse Source

Use uvalue field to get unsigned and avoid range check or overflow errors

git-svn-id: trunk@48977 -
pierre 4 years ago
parent
commit
85fa313e59
1 changed files with 1 additions and 1 deletions
  1. 1 1
      compiler/x86/nx86mat.pas

+ 1 - 1
compiler/x86/nx86mat.pas

@@ -464,7 +464,7 @@ interface
                   end
                 else
                   begin
-                    d:=tordconstnode(right).value.svalue;
+                    d:=tordconstnode(right).value.uvalue;
                     if d>=aword(1) shl (left.resultdef.size*8-1) then
                       begin
                         location.register:=cg.getintregister(current_asmdata.CurrAsmList,cgsize);