Skip to content

Commit

Permalink
Fix compiler warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
joaquinffernandez committed May 2, 2023
1 parent 248407e commit 58cda13
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/engine/qss/qss_file.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ void F_init(LG_log log, QSS_data sim_data, SD_output sim_output)
#endif
int init = log->state->batch_init;
int end = log->state->batch_end;
int total_outputs = log->state->output->outputs;
int total_outputs = log->state->output->outputs;
size = end - init;
if (size > 0) {
log->state->files = (FILE **)malloc(size * sizeof(FILE *));
Expand All @@ -54,7 +54,7 @@ void F_init(LG_log log, QSS_data sim_data, SD_output sim_output)
}
j = 0;
for (i = init; i < total_outputs; i++) {
char ext[128] = "";
char ext[256] = "";
#ifdef QSS_PARALLEL
if (lp->oMap[i] > NOT_ASSIGNED) {
if (sim_output->nOD[i] != 0) {
Expand All @@ -71,8 +71,8 @@ void F_init(LG_log log, QSS_data sim_data, SD_output sim_output)
}
#endif
if (j >= size) {
break;
}
break;
}
}
#ifdef QSS_PARALLEL
log->ops->write = F_PAR_write;
Expand Down
2 changes: 1 addition & 1 deletion src/engine/qss/qss_log.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#include <common/utils.h>
#include <qss/qss_data.h>

#define NAME_SIZE 128
#define NAME_SIZE 256

#define MAX_OPEN_FILES 1000

Expand Down

0 comments on commit 58cda13

Please sign in to comment.