Fix #3 (Empty containers & IN_STR operator).

This commit is contained in:
Patrick Pelissier committed 2017-03-10 01:29:49 +01:00
1 parent 6464acff57
commit e21b45d9ac
6 files changed
+15 -3

No files matched your search

+1 -1
View File
@@ -429,7 +429,7 @@ bitset_in_str(bitset_t set, FILE *file)
if (c != '[') return false;
c = fgetc(file);
do {
if (c != '0' && c != '1') return false;
if (c != '0' && c != '1') break;
bool b = (c == '1');
bitset_push_back (set, b);
c = fgetc(file);