Skip to content

Commit

Permalink
keep reallocating linebuf if still too small after first realloc
Browse files Browse the repository at this point in the history
- as in changes to other readers in 13a5fda
- for second issue reported in #80
  • Loading branch information
svigerske committed Aug 31, 2024
1 parent 6dd602b commit 3310f14
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ Fixed bugs
- do not abort writing of constraints to lp/pip files (and forget to free buffer memory) when encountering unsupported nonlinear constraint
- fixed that names and description of the LPI's were not null-terminated
- fixed decision on when to enforce nonlinear constraints on relaxation solutions if integer variables present
- fixed reading of very long lines (>78000 characters) in FlatZinc reader

Performance improvements
------------------------
Expand Down
2 changes: 1 addition & 1 deletion src/scip/reader_fzn.c
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ SCIP_Bool getNextLine(

fzninput->linenumber++;

if( fzninput->linebuf[fzninput->linebufsize - 2] != '\0' )
while( fzninput->linebuf[fzninput->linebufsize - 2] != '\0' )
{
int newsize;

Expand Down

0 comments on commit 3310f14

Please sign in to comment.