Browse Source

* fixed lengthsleb128

git-svn-id: trunk@2539 -
florian 19 years ago
parent
commit
90146185e3
1 changed files with 4 additions and 4 deletions
  1. 4 4
      compiler/aasmbase.pas

+ 4 - 4
compiler/aasmbase.pas

@@ -285,7 +285,7 @@ implementation
         repeat
         repeat
           b := a and $7f;
           b := a and $7f;
           a := a shr 7;
           a := a shr 7;
-          if (a <> 0) then
+          if a<>0 then
             b := b or $80;
             b := b or $80;
           inc(result);
           inc(result);
           if a=0 then
           if a=0 then
@@ -306,12 +306,12 @@ implementation
         repeat
         repeat
           b := a and $7f;
           b := a and $7f;
           a := a shr 7;
           a := a shr 7;
-          if (neg) then
+          if neg then
             a := a or -(1 shl (size - 7));
             a := a or -(1 shl (size - 7));
           if (((a = 0) and
           if (((a = 0) and
-               (a and $40 = 0)) or
+               (b and $40 = 0)) or
               ((a = -1) and
               ((a = -1) and
-               (a and $40 <> 0))) then
+               (b and $40 <> 0))) then
             more := false
             more := false
           else
           else
             b := b or $80;
             b := b or $80;