X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=blobdiff_plain;f=lib%2Fos.c;h=fddaee904c0f6f79f482c4e9a0a234d1c27a87e3;hp=ccb0041e257d797910b88064450012c6d78fe0bc;hb=2391d7ae5d8a145a250a8b80ab8c93ba74eba030;hpb=05861649cece70d65e7ba84c3696039c0143ce9c diff --git a/lib/os.c b/lib/os.c index ccb0041..fddaee9 100755 --- a/lib/os.c +++ b/lib/os.c @@ -210,7 +210,7 @@ char* mktempname(char*ptr) { // used to be mktemp. This does remove the warnings, but // It's not exactly an improvement. #ifdef HAVE_LRAND48 - sprintf(ptr, "%s%s%08x%08x",dir,sep,lrand48(),lrand48()); + sprintf(ptr, "%s%s%08x%08x",dir,sep,(unsigned int)lrand48(),(unsigned int)lrand48()); #else # ifdef HAVE_RAND sprintf(ptr, "%s%s%08x%08x",dir,sep,rand(),rand());