Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Kate <[email protected]>
  • Loading branch information
hhugo and kit-ty-kate committed Jun 20, 2024
1 parent ec50b56 commit da58f62
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ocamlbuild_executor.ml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ let output_lines prefix oc buffer =
in
(* ignore trailing CR *)
let k = ref j in
while !k > i && u.[!k - 1] = '\r' do decr k done;
while !k > (i : int) && u.[!k - 1] = '\r' do decr k done;
output_line i !k;
loop (j + 1)
else
Expand Down
2 changes: 1 addition & 1 deletion src/shell.ml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ let generic_quote quotequote s =
for i = 0 to l - 1 do
if s.[i] = '\''
then Buffer.add_string b quotequote
else Buffer.add_char b s.[i]
else Buffer.add_char b s.[i]
done;
Buffer.add_char b '\'';
Buffer.contents b
Expand Down

0 comments on commit da58f62

Please sign in to comment.