include/SDL_stdinc.h
changeset 7015 e3cba60c0f0a
parent 7011 82bbfbbc720e
child 7036 8c891504e325
     1.1 --- a/include/SDL_stdinc.h	Tue Mar 19 21:53:33 2013 -0700
     1.2 +++ b/include/SDL_stdinc.h	Tue Mar 19 22:02:34 2013 -0700
     1.3 @@ -342,13 +342,12 @@
     1.4      );
     1.5  /* !!! FIXME: amd64? */
     1.6  #else
     1.7 -    unsigned int _count = (len);
     1.8 -    unsigned int _n = (_count + 3) / 4;
     1.9 +    size_t _n = (len + 3) / 4;
    1.10      Uint32 *_p = SDL_static_cast(Uint32 *, dst);
    1.11      Uint32 _val = (val);
    1.12      if (len == 0)
    1.13          return;
    1.14 -    switch (_count % 4)
    1.15 +    switch (len % 4)
    1.16      {
    1.17          case 0: do {    *_p++ = _val;
    1.18          case 3:         *_p++ = _val;