Fix #3 (Empty containers & IN_STR operator).
This commit is contained in:
1 parent
6464acff57
commit
e21b45d9ac
6 files changed
+15
-3
No files matched your search
+1
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user