mirror of
https://github.com/CoolProp/CoolProp.git
synced 2026-04-23 03:00:17 -04:00
Merge pull request #360 from CoolProp/asan_rpversion
RPversion call needs to take in a longer string than it should require
This commit is contained in:
@@ -291,8 +291,8 @@ bool load_REFPROP()
|
||||
throw CoolProp::AttributeError("There was an error setting the REFPROP function pointers, check types and names in header file.");
|
||||
return false;
|
||||
}
|
||||
char rpv[255];
|
||||
RPVersion(rpv);
|
||||
char rpv[1000];
|
||||
RPVersion(rpv, 1000);
|
||||
RPVersion_loaded = rpv;
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -144,7 +144,7 @@ extern "C" {
|
||||
#endif
|
||||
|
||||
// For C calling conventions, replaced all "double &" with "double *", and "long &" with "long *"
|
||||
typedef void (CALLCONV RPVersion_TYPE)( char* );
|
||||
typedef void (CALLCONV RPVersion_TYPE)( char* , long);
|
||||
typedef void (CALLCONV SETPATHdll_TYPE)( const char* );
|
||||
typedef void (CALLCONV ABFL1dll_TYPE)(double *,double *,double *,long *,double *,double *,double *,double *,double *,double *,long *,char*,long );
|
||||
typedef void (CALLCONV ABFL2dll_TYPE)(double *,double *,double *,long *,long *,double *,double *,double *,double *,double *,double *,double *,double *,double *,double *,double *,double *,double *,double *,double *,double *,long *,char*,long );
|
||||
|
||||
Reference in New Issue
Block a user