Skip to content

Commit

Permalink
missing length(message_buffer)
Browse files Browse the repository at this point in the history
  • Loading branch information
longemen3000 authored Sep 24, 2023
1 parent 0972779 commit 6ee3fae
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/CoolProp.jl
Original file line number Diff line number Diff line change
Expand Up @@ -947,6 +947,7 @@ Unspecify the phase to be used for all further calculations.
* `handle`: The integer handle for the state class stored in memory
"""
function AbstractState_unspecify_phase(handle::Clong)
buffer_length = length(message_buffer)
ccall( (:AbstractState_unspecify_phase, libcoolprop), Nothing, (Clong, Ref{Clong}, Ptr{UInt8}, Clong), handle, errcode, message_buffer::Array{UInt8, 1}, buffer_length)
raise(errcode, message_buffer)
return nothing
Expand Down Expand Up @@ -1125,6 +1126,7 @@ Set cubic's alpha function parameters.
* `c3`: the third parameter for the alpha function
"""
function AbstractState_set_cubic_alpha_C(handle::Clong, i::Integer, parameter::AbstractString, c1::Real, c2::Real, c3::Real)
buffer_length = length(message_buffer)
ccall( (:AbstractState_set_cubic_alpha_C, libcoolprop), Nothing, (Clong, Clong, Cstring, Cdouble, Cdouble, Cdouble, Ref{Clong}, Ptr{UInt8}, Clong), handle, i, parameter, c1, c2, c3, errcode, message_buffer::Array{UInt8, 1}, buffer_length)
raise(errcode, message_buffer)
return nothing
Expand Down

0 comments on commit 6ee3fae

Please sign in to comment.