Skip to content

Commit

Permalink
Corrected function signature
Browse files Browse the repository at this point in the history
Avoids a warning in OCT
  • Loading branch information
mwetter committed Apr 2, 2024
1 parent 6985722 commit 2bbcfbe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions IBPSA/Resources/C-Sources/WeeklySchedule.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ int cmpfun(const void * tuple1, const void * tuple2) {
return (time1 - time2);
}

void* weeklyScheduleInit(const int tableOnFile, const char* name, const double t_offset, char* stringData) {
void* weeklyScheduleInit(const int tableOnFile, const char* name, const double t_offset, const char* stringData) {
const int bufLen = 255;
WeeklySchedule* scheduleID = NULL;


int i = 0; /* iterator */
int j = 0; /* iterator */
int k = 0; /* iterator */
Expand Down Expand Up @@ -519,7 +519,7 @@ double getScheduleValue(void * ID, const int column, const double modelicaTime)
int i;
const int columnIndex = column - 1; /* Since we do not store the time indices in the data table */

/* Not calling weeklyScheduleFreeInit() or weeklyScheduleFree() since weeklyScheduleFreeInit() has already been called at the end of the
/* Not calling weeklyScheduleFreeInit() or weeklyScheduleFree() since weeklyScheduleFreeInit() has already been called at the end of the
initialization and Modelica will call weeklyScheduleFree() upon a call of ModelicaFormatError) */
if (column < 0 || column > scheduleID->n_cols_in - 1) {
ModelicaFormatError("The requested column index '%i' is outside of the table range.", column + 1);
Expand Down
2 changes: 1 addition & 1 deletion IBPSA/Resources/C-Sources/WeeklySchedule.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ typedef struct WeeklySchedule {



void* weeklyScheduleInit(const int tableOnFile, const char* name, const double t_offset, char* stringData);
void* weeklyScheduleInit(const int tableOnFile, const char* name, const double t_offset, const char* stringData);

void weeklyScheduleFree(void * ID);

Expand Down

0 comments on commit 2bbcfbe

Please sign in to comment.