Mercurial > dwindows
diff compat.c @ 1110:404b639f096b
Minor typecast fixes for warnings reported by clang on Mac.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Wed, 27 Jul 2011 00:37:34 +0000 |
parents | 1c24949cf853 |
children | 184b3aedc2ff |
line wrap: on
line diff
--- a/compat.c Tue Jul 26 20:35:05 2011 +0000 +++ b/compat.c Wed Jul 27 00:37:34 2011 +0000 @@ -41,7 +41,7 @@ nanosleep(&req, NULL); #else - usleep(period * 1000); + usleep((int)(period * 1000)); #if defined(__MAC__) && !defined(GARBAGE_COLLECT) _dw_pool_drain(); #endif @@ -632,7 +632,7 @@ if(argc > 0) { char *tmpdir = strdup(argv[0]); - int z, len = strlen(argv[0]); + int z, len = (int)strlen(argv[0]); for(z=len;z > -1;z--) { @@ -691,7 +691,7 @@ int _stripcrlf(char *buf) { - int z, len = strlen(buf); + int z, len = (int)strlen(buf); for(z=0;z<len;z++) { @@ -773,7 +773,7 @@ /* Use defaults on blank lines */ if(text[0]) { - int x = 0, z, len = strlen(text); + int x = 0, z, len = (int)strlen(text); locale_text[current] = calloc(1, len + 1);