Skip to content

Commit

Permalink
Directly use int32 values instead of Int32.of_int (@avsm)
Browse files Browse the repository at this point in the history
  • Loading branch information
dinosaure committed Feb 10, 2023
1 parent ddb302d commit 657b7c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tcp/flow.ml
Expand Up @@ -21,7 +21,7 @@ let src = Logs.Src.create "tcp.pcb" ~doc:"Mirage TCP PCB module"
module Log = (val Logs.src_log src : Logs.LOG)

(* MSS options are 16 bites, so the max value is 64k *)
let max_mss = Int32.of_int (64 * 1024)
let max_mss = Int32.mul 64l 1024l

module Make(Ip: Tcpip.Ip.S)(Time:Mirage_time.S)(Clock:Mirage_clock.MCLOCK)(Random:Mirage_random.S) =
struct
Expand Down

0 comments on commit 657b7c8

Please sign in to comment.