Thanks for the warnings. All of these cases were fixed by replacing 'int' casts with 'intptr_t' casts. (intptr_t has the same size as void *.) Eddie