mirror of
https://github.com/libexpat/libexpat.git
synced 2026-01-29 10:54:41 +00:00
The symptom was: > [..]/expat/xmlwf/xmlfile.c:204:13: error: narrowing conversion from 'ssize_t' (aka 'long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,-warnings-as-errors] > 204 | nread = read(fd, buf, g_read_size_bytes); > | ^ > [..]/expat/xmlwf/xmlwf.c:314:14: error: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions,-warnings-as-errors] > 314 | numBytes = count * sizeof(XML_Char); > | ^ The solution to read(3) was copied from file xmlwf/readfilemap.c for now.