Fix ICC warnings
[alexxy/gromacs.git] / src / gromacs / tools / compare.c
index e2ee20b87144d242f13f26c2f07daa73f2b58b33..89038a4c244c72818f46900fcee9d3809f47a4cd 100644 (file)
@@ -86,11 +86,11 @@ static void cmp_us(FILE *fp, const char *s, int index, unsigned short i1, unsign
     {
         if (index != -1)
         {
-            fprintf(fp, "%s[%d] (%u - %u)\n", s, index, i1, i2);
+            fprintf(fp, "%s[%d] (%hu - %hu)\n", s, index, i1, i2);
         }
         else
         {
-            fprintf(fp, "%s (%u - %u)\n", s, i1, i2);
+            fprintf(fp, "%s (%hu - %hu)\n", s, i1, i2);
         }
     }
 }