Fix compiler warnings on 64 bit machines
authorJohn Darrington <john@darrington.wattle.id.au>
Sat, 3 Jan 2015 14:48:35 +0000 (15:48 +0100)
committerJohn Darrington <john@darrington.wattle.id.au>
Sun, 4 Jan 2015 20:50:11 +0000 (21:50 +0100)
src/language/stats/factor.c
tests/data/sack.c

index 208307d0f11e781b1a5dceaf4fdd7a1c88e8df8a..c34feb8d05ee7312e0f1e0cbf08be7c4002b0cd3 100644 (file)
@@ -1847,12 +1847,12 @@ show_factor_correlation (const struct cmd_factor * factor, const gsl_matrix *fcm
 
   for (i = 0 ; i < fcm->size1; ++i)
     {
-      tab_text_format (t, heading_columns + i, 0, TAB_CENTER | TAT_TITLE, _("%d"), i + 1);
+      tab_text_format (t, heading_columns + i, 0, TAB_CENTER | TAT_TITLE, _("%zu"), i + 1);
     }
 
   for (i = 0 ; i < fcm->size2; ++i)
     {
-      tab_text_format (t, 0, heading_rows + i, TAB_CENTER | TAT_TITLE, _("%d"), i + 1);
+      tab_text_format (t, 0, heading_rows + i, TAB_CENTER | TAT_TITLE, _("%zu"), i + 1);
     }
 
 
index f27edacaa0ba856c22e50c63783d5bcff95e03cb..006d73f1c93f214a3232b0d199abb6ec03d80faf 100644 (file)
@@ -596,7 +596,7 @@ parse_data_item (struct buffer *output)
       if (sym->offset == UINT_MAX)
         sym->offset = output->size;
       else if (sym->offset != output->size)
-        fatal ("%s: can't redefine label for offset %u with offset %u",
+        fatal ("%s: can't redefine label for offset %u with offset %zu",
                tok_string, sym->offset, output->size);
       get_token ();
       return;