浏览代码

* fixed crashes with length(pchar) and length(pwidechar) after
r9360-r9361

git-svn-id: trunk@9363 -

Jonas Maebe 17 年之前
父节点
当前提交
feec2a74f2
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      compiler/ninl.pas

+ 2 - 0
compiler/ninl.pas

@@ -2049,6 +2049,7 @@ implementation
                             { make sure the left node doesn't get disposed, since it's }
                             { reused in the new node (JM)                              }
                             left:=nil;
+                            exit;
                          end
                         else if is_pwidechar(left.resultdef) then
                          begin
@@ -2057,6 +2058,7 @@ implementation
                             { make sure the left node doesn't get disposed, since it's }
                             { reused in the new node (JM)                              }
                             left:=nil;
+                            exit;
                          end
                         else
                          CGMessage(type_e_mismatch);