From 108f278f13a5be0e79ee0179e82226a1c5a3ada8 Mon Sep 17 00:00:00 2001 From: Leandro Martinez Date: Fri, 15 Nov 2024 20:50:48 -0300 Subject: [PATCH] Use Cchar instead of UInt8 for `format` --- src/Trajectory.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Trajectory.jl b/src/Trajectory.jl index a0893b9..490ae90 100644 --- a/src/Trajectory.jl +++ b/src/Trajectory.jl @@ -16,7 +16,7 @@ format to use when opening the file. """ function Trajectory(path::AbstractString, mode::Char='r', format::AbstractString="") ptr = @__check_ptr(lib.chfl_trajectory_with_format( - pointer(path), Int8(mode), pointer(format), + pointer(path), Cchar(mode), pointer(format), )) return Trajectory(CxxPointer(ptr, is_const=false), nothing) end