Branch: Tag:

2017-04-30

2017-04-30 15:16:33 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Build [Image]: Fixed some more C99-isms.

2180:    }    else    { +  UINT64 *rnd;    push_random_string(len*8); -  UINT64 *rnd = (UINT64*)Pike_sp[-1].u.string->str; +  rnd = (UINT64*)Pike_sp[-1].u.string->str;    while (len--)    {    if (rnd[len]%(255*255) <
2199:    int v = (int)(COLORMAX*alpha);    if (!la) /* no layer alpha => full opaque */    { +  unsigned char *rnd    push_random_string(len); -  unsigned char *rnd = (unsigned char*)Pike_sp[-1].u.string->str; +  rnd = (unsigned char*)Pike_sp[-1].u.string->str;    while (len--)    {    if (rnd[len] < (unsigned)v)
2213:    }    else    { +  UINT64 *rnd;    push_random_string(len*8); -  UINT64 *rnd = (UINT64*)Pike_sp[-1].u.string->str; +  rnd = (UINT64*)Pike_sp[-1].u.string->str;    while (len--)    {    if (rnd[len]%(255*255) <