Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/git-unix/ogit-fetch/main.ml
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ module Flag = struct
| s -> Error (`Msg (Fmt.strf "%s is not an output." s))
in
let print ppf v =
Fmt.pf ppf "%s" (if v == Fmt.stdout then "stdout" else "stderr")
Fmt.pf ppf "%s" (if v = Fmt.stdout then "stdout" else "stderr")
in
Arg.conv ~docv:"<output>" (parse, print)
in
Expand Down
6 changes: 3 additions & 3 deletions src/not-so-smart/decoder.ml
Original file line number Diff line number Diff line change
Expand Up @@ -276,13 +276,13 @@ let peek_while_eol decoder =
!idx < end_of_input decoder
&&
( chr := Bytes.unsafe_get decoder.buffer !idx;
not (!chr == '\n' && !has_cr) )
not (!chr = '\n' && !has_cr) )
do
has_cr := !chr == '\r';
has_cr := !chr = '\r';
incr idx
done;

if !idx < end_of_input decoder && !chr == '\n' && !has_cr then (
if !idx < end_of_input decoder && !chr = '\n' && !has_cr then (
assert (!idx + 1 - decoder.pos > 1);
decoder.buffer, decoder.pos, !idx + 1 - decoder.pos )
else leave_with decoder `Expected_eol
Expand Down