Hi, > What i get: > [ CC ] ==> build/libc/stdlib/rand.o > rand.c:46: warning 154: converting integral to pointer without a cast > from type 'literal-unsigned-long-int' > to type 'unsigned-long-int generic* ' > sdcc: gen.c:4600: genDiv: Assertion `rightVal >= -128 && rightVal < 256' > failed. > > The problem seems to be with the % in the do_rand function in the rand.c > file. If i comment out everything just before the % sind in this > function everything compiles fine. > > Any hints how to fix this?
I guess this is related to Maarten's change to SDCCicode.c on 2007-02-07 (r4621ff), I checked with the r4620's src/SDCCicode.c and found it works OK. So the workaround for now is to "svn up -r4620 src/SDCCicode.c" and recompile SDCC including the (pic16) libraries. @Maarten: Will you have a look at this? -- Regards, Raphael Neider ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Sdcc-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sdcc-user
