瀏覽代碼

* fixed lengthsleb128

git-svn-id: trunk@2539 -
florian 19 年之前
父節點
當前提交
90146185e3
共有 1 個文件被更改,包括 4 次插入4 次删除
  1. 4 4
      compiler/aasmbase.pas

+ 4 - 4
compiler/aasmbase.pas

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