Skip to content

Commit

Permalink
change UInt8 to Cchar
Browse files Browse the repository at this point in the history
  • Loading branch information
lmiq committed Nov 18, 2024
1 parent 9968dc0 commit 4769cef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Trajectory.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4769cef

Please sign in to comment.