return 1;
}
- if (fwrite(m->t, 1, m->f.seg[0].length, of) != m->f.seg[0].length ||
- fwrite(padding, 1, codepad, of) != codepad ||
- fwrite(m->d, 1, m->f.seg[1].length, of) != m->f.seg[1].length) {
+ if (fwrite(m->t, 1, m->f.seg[0].length, of) != (size_t)m->f.seg[0].length ||
+ fwrite(padding, 1, codepad, of) != (size_t)codepad ||
+ fwrite(m->d, 1, m->f.seg[1].length, of) != (size_t)m->f.seg[1].length) {
fprintf(stderr, "rdf2bin: error writing to %s\n", *argv);
return 1;
}