Skip to content

Commit 97793f2

Browse files
committed
Directly use int32 values instead of Int32.of_int (@avsm)
1 parent ddb302d commit 97793f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tcp/flow.ml

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ let src = Logs.Src.create "tcp.pcb" ~doc:"Mirage TCP PCB module"
2121
module Log = (val Logs.src_log src : Logs.LOG)
2222

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

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

0 commit comments

Comments
 (0)