Changeset b5875a4 in serd


Ignore:
Timestamp:
Aug 29, 2017, 3:50:08 AM (3 months ago)
Author:
David Robillard <d@…>
Branches:
master, serd1
Children:
90c4294
Parents:
1423442
Message:

Fix building with MSVC

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • NEWS

    r1423442 rb5875a4  
    33  * Support strict parsing of prefixed names
    44  * Report errors for prematurely terminated statements
     5  * Fix building with MSVC
    56
    67 -- David Robillard <d@drobilla.net>  Mon, 28 Aug 2017 12:39:47 +0200
  • src/reader.c

    r1423442 rb5875a4  
    167167    bool bad = false;
    168168    for (unsigned i = 0; i < n; ++i) {
    169         bad |= eat_byte_check(reader, ((const uint8_t*)str)[i]);
     169        bad |= (bool)eat_byte_check(reader, ((const uint8_t*)str)[i]);
    170170    }
    171171    return bad;
     
    650650        return st;
    651651    } else if (reader->strict && !is_PN_CHARS_BASE(code)) {
    652         return r_err(reader, SERD_ERR_BAD_SYNTAX,
    653                      "invalid character U+%04X in name\n", code);
     652        r_err(reader, SERD_ERR_BAD_SYNTAX,
     653              "invalid character U+%04X in name\n", code);
     654        return SERD_ERR_BAD_SYNTAX;
    654655    }
    655656    return st;
Note: See TracChangeset for help on using the changeset viewer.