Mercurial > dwindows
diff mac/dw.m @ 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 | cfe7d2b6bc16 |
children | 03cd2f3e929d |
line wrap: on
line diff
--- a/mac/dw.m Tue Jul 26 20:35:05 2011 +0000 +++ b/mac/dw.m Wed Jul 27 00:37:34 2011 +0000 @@ -8254,7 +8254,7 @@ void _my_strlwr(char *buf) { - int z, len = strlen(buf); + int z, len = (int)strlen(buf); for(z=0;z<len;z++) { @@ -8279,7 +8279,7 @@ if(!handle) return -1; - if((len = strlen(name)) == 0) + if((len = (int)strlen(name)) == 0) return -1; /* Lenth + "lib" + ".dylib" + NULL */ @@ -8587,7 +8587,7 @@ { if(FD_ISSET(array[z].fd, &rd)) { - if((bytesread = read(array[z].fd, &command, 1)) < 1) + if((bytesread = (int)read(array[z].fd, &command, 1)) < 1) { struct _seminfo *newarray; @@ -8820,7 +8820,7 @@ else { tv.tv_sec = timeout / 1000; - tv.tv_usec = timeout % 1000; + tv.tv_usec = (int)timeout % 1000; useme = &tv; }