Fix incorrect bitwise OR operator

This commit is contained in:
Shahram Najm 2016-02-25 17:45:09 +00:00
parent ba4cb052da
commit 1684f93b3c
2 changed files with 8 additions and 8 deletions

View File

@ -40,11 +40,11 @@ int main(int argc,char* argv[])
/* To skip certain keys use the combination of these flags: /* To skip certain keys use the combination of these flags:
unsigned long key_iterator_filter_flags= unsigned long key_iterator_filter_flags=
CODES_KEYS_ITERATOR_SKIP_READ_ONLY || CODES_KEYS_ITERATOR_SKIP_READ_ONLY |
CODES_KEYS_ITERATOR_SKIP_COMPUTED || CODES_KEYS_ITERATOR_SKIP_COMPUTED |
CODES_KEYS_ITERATOR_SKIP_CODED || CODES_KEYS_ITERATOR_SKIP_CODED |
CODES_KEYS_ITERATOR_SKIP_EDITION_SPECIFIC || CODES_KEYS_ITERATOR_SKIP_EDITION_SPECIFIC |
CODES_KEYS_ITERATOR_SKIP_DUPLICATES || CODES_KEYS_ITERATOR_SKIP_DUPLICATES |
CODES_KEYS_ITERATOR_SKIP_FUNCTION; */ CODES_KEYS_ITERATOR_SKIP_FUNCTION; */
unsigned long key_iterator_filter_flags=CODES_KEYS_ITERATOR_ALL_KEYS; unsigned long key_iterator_filter_flags=CODES_KEYS_ITERATOR_ALL_KEYS;

View File

@ -33,9 +33,9 @@ static void usage(char* progname);
int main(int argc, char *argv[]) int main(int argc, char *argv[])
{ {
/* To skip read only and not coded keys /* To skip read only and computed keys
unsigned long key_iterator_filter_flags=CODES_KEYS_ITERATOR_SKIP_READ_ONLY || unsigned long key_iterator_filter_flags=CODES_KEYS_ITERATOR_SKIP_READ_ONLY |
CODES_KEYS_ITERATOR_SKIP_COMPUTED; CODES_KEYS_ITERATOR_SKIP_COMPUTED;
*/ */
unsigned long key_iterator_filter_flags=CODES_KEYS_ITERATOR_ALL_KEYS; unsigned long key_iterator_filter_flags=CODES_KEYS_ITERATOR_ALL_KEYS;