diff --git a/include/tinyopt/tinyopt.h b/include/tinyopt/tinyopt.h index 1bf9085..97f6e42 100644 --- a/include/tinyopt/tinyopt.h +++ b/include/tinyopt/tinyopt.h @@ -901,7 +901,7 @@ struct saved_options: private std::vector { 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) {