Fix bug with RPVersion function call

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
This commit is contained in:
Ian Bell
2014-12-12 01:27:22 -05:00
parent 28c7b1dccd
commit bc71cc8f11
2 changed files with 2 additions and 2 deletions

View File

@@ -292,7 +292,7 @@ bool load_REFPROP()
return false;
}
char rpv[255];
RPVersion(rpv);
RPVersion(rpv, 255);
RPVersion_loaded = rpv;
return true;
}

View File

@@ -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 );