Skip to content

Commit

Permalink
Simplify: UInt64.of_string -> Int64.of_nativeint
Browse files Browse the repository at this point in the history
  • Loading branch information
lukstafi committed Oct 18, 2024
1 parent 224ceb7 commit 2714b39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cudajit.ml
Original file line number Diff line number Diff line change
Expand Up @@ -1062,7 +1062,7 @@ end

let sexp_of_voidp ptr =
Sexplib0.Sexp.Atom
("@" ^ Unsigned.UInt64.to_hexstring @@ Unsigned.UInt64.of_string @@ Nativeint.to_string
("@" ^ Unsigned.UInt64.to_hexstring @@ Unsigned.UInt64.of_int64 @@ Int64.of_nativeint
@@ Ctypes.raw_address_of_ptr ptr)

let sexp_of_cu_event (event : cu_event) = sexp_of_voidp @@ Ctypes.to_voidp event
Expand Down

0 comments on commit 2714b39

Please sign in to comment.