X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fsec%2Fprng%2Fisaac.c;fp=bertos%2Fsec%2Fprng%2Fisaac.c;h=86c162700369b8f7b99366ccef5913c8c6601d45;hb=e596a709a407e54b16e338576d4fdb639ed96b15;hp=6c0ddc1cb3f453550da79bad842431d17a71dfcb;hpb=30239ef110eb454b5df5c04ddaa1398364a80e3e;p=bertos.git diff --git a/bertos/sec/prng/isaac.c b/bertos/sec/prng/isaac.c index 6c0ddc1c..86c16270 100644 --- a/bertos/sec/prng/isaac.c +++ b/bertos/sec/prng/isaac.c @@ -57,7 +57,7 @@ typedef uint32_t ub4; typedef uint16_t ub2; typedef uint8_t ub1; -#define ind(mm,x) (*(ub4 *)((ub1 *)(mm) + ((x) & ((CONFIG_ISAAC_RANDSIZ-1)<<2)))) +#define ind(mm,x) (*(ub4 *)((size_t)(mm) + ((x) & ((CONFIG_ISAAC_RANDSIZ-1)<<2)))) #define rngstep(mix,a,b,mm,m,m2,r,x) \ { \ x = *m; \