Skip to content

Commit

Permalink
Avoid narrowing return value of istream::get() (#16)
Browse files Browse the repository at this point in the history
Fixes issue #15.
  • Loading branch information
halfflat authored Dec 8, 2023
1 parent 502862c commit 36d59b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/tinyopt/tinyopt.h
Original file line number Diff line number Diff line change
Expand Up @@ -901,7 +901,7 @@ struct saved_options: private std::vector<std::string> {
bool quote = false; // true => within single quotes.
bool escape = false; // true => previous character was backslash.
while (in) {
char c = in.get();
int c = in.get();
if (c==EOF) break;

if (quote) {
Expand Down

0 comments on commit 36d59b5

Please sign in to comment.