From 9968dc02fd3830c284defdd4ae441d83cbeb65d8 Mon Sep 17 00:00:00 2001 From: Leandro Martinez Date: Fri, 15 Nov 2024 20:50:48 -0300 Subject: [PATCH 1/2] fix UInt8 type --- src/Trajectory.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Trajectory.jl b/src/Trajectory.jl index a0893b9..50409e5 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), UInt8(mode), pointer(format), )) return Trajectory(CxxPointer(ptr, is_const=false), nothing) end From 4769cef5489872a8c4223562fcc69e5f64752794 Mon Sep 17 00:00:00 2001 From: Leandro Martinez Date: Mon, 18 Nov 2024 08:49:19 -0300 Subject: [PATCH 2/2] change UInt8 to Cchar --- src/Trajectory.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Trajectory.jl b/src/Trajectory.jl index 50409e5..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), UInt8(mode), pointer(format), + pointer(path), Cchar(mode), pointer(format), )) return Trajectory(CxxPointer(ptr, is_const=false), nothing) end