Skip to content

Commit

Permalink
Avoid warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
fdabrandao committed Feb 23, 2024
1 parent 9552d65 commit cea9470
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion nl-writer2/include/mp/nl-solver.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@

namespace mp {

class NLHeader;
struct NLHeader;

/**
\rst
Expand Down
2 changes: 1 addition & 1 deletion nl-writer2/include/mp/sol-reader2.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,7 @@ NLW2_SOLReadResultCode SOLReader2<SOLHandler>::gsufread(FILE* f) {
if (!fgets(buf, sizeof(buf)-1, f))
return ReportEarlyEof();
if (!(L = strlen(buf)) || buf[--L] != '\n'
|| L >= se - s)
|| L >= (size_t)(se - s))
return ReportBadLine(buf);
if (L) {
if (buf[L-1] != '\r' || --L) {
Expand Down

0 comments on commit cea9470

Please sign in to comment.