From 3e9ca1fbf4e597252ea57fcd34258d73ee1db04e Mon Sep 17 00:00:00 2001 From: Ian Bell Date: Sun, 21 Aug 2016 12:45:35 -0600 Subject: [PATCH] Remove non-c types from CoolPropLib.[cpp/h] @JonWel - watch out for the use of C++ types in C header --- include/CoolPropLib.h | 2 +- src/CoolPropLib.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/CoolPropLib.h b/include/CoolPropLib.h index 10b8a899..5bb3e176 100644 --- a/include/CoolPropLib.h +++ b/include/CoolPropLib.h @@ -423,7 +423,7 @@ * @param buffer_length The length of the buffer for the error code * @return */ - EXPORT_CODE void CONVENTION AbstractState_set_fluid_parameter_double(const long handle, const size_t i, const char* parameter, const double value, long *errcode, char *message_buffer, const long buffer_length); + EXPORT_CODE void CONVENTION AbstractState_set_fluid_parameter_double(const long handle, const long i, const char* parameter, const double value, long *errcode, char *message_buffer, const long buffer_length); // ************************************************************************************* // ************************************************************************************* diff --git a/src/CoolPropLib.cpp b/src/CoolPropLib.cpp index 700c9feb..8e159dad 100644 --- a/src/CoolPropLib.cpp +++ b/src/CoolPropLib.cpp @@ -781,7 +781,7 @@ EXPORT_CODE void CONVENTION AbstractState_set_binary_interaction_double(const lo } } -EXPORT_CODE void CONVENTION AbstractState_set_fluid_parameter_double(const long handle, const size_t i, const char* parameter, const double value , long *errcode, char *message_buffer, const long buffer_length) { +EXPORT_CODE void CONVENTION AbstractState_set_fluid_parameter_double(const long handle, const long i, const char* parameter, const double value , long *errcode, char *message_buffer, const long buffer_length) { *errcode = 0; try { shared_ptr &AS = handle_manager.get(handle);