signedness: Fix less obvious issues
* My compilers mark these as errors * Attempt to be more correct * Tested on gcc-5.2.0 and clang-3.6.2
This commit is contained in:
parent
e933510236
commit
376b63fb81
6 changed files with 15 additions and 15 deletions
|
|
@ -1216,7 +1216,7 @@ int main() {
|
|||
fprintf(srcf, "static const capn_ptr capn_null = {CAPN_NULL};\n");
|
||||
|
||||
if (g_valseg.len > 8) {
|
||||
fprintf(srcf, "static const uint8_t capn_buf[%d] = {", g_valseg.len-8);
|
||||
fprintf(srcf, "static const uint8_t capn_buf[%lu] = {", g_valseg.len-8);
|
||||
for (j = 8; j < g_valseg.len; j++) {
|
||||
if (j > 8)
|
||||
fprintf(srcf, ",");
|
||||
|
|
@ -1226,7 +1226,7 @@ int main() {
|
|||
}
|
||||
fprintf(srcf, "\n};\n");
|
||||
|
||||
fprintf(srcf, "static const struct capn_segment capn_seg = {{0},0,0,0,(char*)&capn_buf[0],%d,%d};\n",
|
||||
fprintf(srcf, "static const struct capn_segment capn_seg = {{0},0,0,0,(char*)&capn_buf[0],%lu,%lu};\n",
|
||||
g_valseg.len-8, g_valseg.len-8);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue