Changed types and added casts so that build is clean with gcc -Wsign-compare.
[mmh] / uip / dist.c
index 4eba2eb..dabfec7 100644 (file)
@@ -127,7 +127,7 @@ main(int argc, char **argv)
                adios(drft, "unable to create");
 
        fmtstr = new_fs(form, distcomps);
-       if (write(out, fmtstr, strlen(fmtstr)) != strlen(fmtstr)) {
+       if (write(out, fmtstr, strlen(fmtstr)) != (int)strlen(fmtstr)) {
                adios(drft, "error writing");
        }
        close(out);