From 1684f93b3ce18f4fc9e775e8ff760fe3d3684330 Mon Sep 17 00:00:00 2001 From: Shahram Najm Date: Thu, 25 Feb 2016 17:45:09 +0000 Subject: [PATCH] Fix incorrect bitwise OR operator --- examples/C/bufr_keys_iterator.c | 10 +++++----- examples/C/grib_keys_iterator.c | 6 +++--- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/examples/C/bufr_keys_iterator.c b/examples/C/bufr_keys_iterator.c index aa7780603..7a2010778 100644 --- a/examples/C/bufr_keys_iterator.c +++ b/examples/C/bufr_keys_iterator.c @@ -40,11 +40,11 @@ int main(int argc,char* argv[]) /* To skip certain keys use the combination of these flags: unsigned long key_iterator_filter_flags= - CODES_KEYS_ITERATOR_SKIP_READ_ONLY || - CODES_KEYS_ITERATOR_SKIP_COMPUTED || - CODES_KEYS_ITERATOR_SKIP_CODED || - CODES_KEYS_ITERATOR_SKIP_EDITION_SPECIFIC || - CODES_KEYS_ITERATOR_SKIP_DUPLICATES || + CODES_KEYS_ITERATOR_SKIP_READ_ONLY | + CODES_KEYS_ITERATOR_SKIP_COMPUTED | + CODES_KEYS_ITERATOR_SKIP_CODED | + CODES_KEYS_ITERATOR_SKIP_EDITION_SPECIFIC | + CODES_KEYS_ITERATOR_SKIP_DUPLICATES | CODES_KEYS_ITERATOR_SKIP_FUNCTION; */ unsigned long key_iterator_filter_flags=CODES_KEYS_ITERATOR_ALL_KEYS; diff --git a/examples/C/grib_keys_iterator.c b/examples/C/grib_keys_iterator.c index 90a9c9624..0076582ad 100644 --- a/examples/C/grib_keys_iterator.c +++ b/examples/C/grib_keys_iterator.c @@ -33,9 +33,9 @@ static void usage(char* progname); int main(int argc, char *argv[]) { - /* To skip read only and not coded keys - unsigned long key_iterator_filter_flags=CODES_KEYS_ITERATOR_SKIP_READ_ONLY || - CODES_KEYS_ITERATOR_SKIP_COMPUTED; + /* To skip read only and computed keys + unsigned long key_iterator_filter_flags=CODES_KEYS_ITERATOR_SKIP_READ_ONLY | + CODES_KEYS_ITERATOR_SKIP_COMPUTED; */ unsigned long key_iterator_filter_flags=CODES_KEYS_ITERATOR_ALL_KEYS;