Skip to content

Commit

Permalink
Use Cchar instead of UInt8 for format
Browse files Browse the repository at this point in the history
  • Loading branch information
lmiq authored and Luthaf committed Nov 18, 2024
1 parent 4bf74d9 commit 108f278
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), Int8(mode), pointer(format),
pointer(path), Cchar(mode), pointer(format),
))
return Trajectory(CxxPointer(ptr, is_const=false), nothing)
end
Expand Down

0 comments on commit 108f278

Please sign in to comment.