Because it's not obvious how pointer arithmetic should behave with void
pointers. This makes it explicit.

~Phillip


On Thu, May 2, 2013 at 9:11 PM, Anthony Cornehl <notifications@github.com>wrote:

> In ts_stdlib/src/string/strshift.c:
>
> >  	if (count - offset < buflen)
> >  	{
> >  		memcpy(buf, str, buflen);
> > -		memmove(str, &str[buflen], offset);
> > -		memcpy(&str[offset], buf, buflen);
> > +		memmove(str, (char*)str + buflen, offset*size);
>
> Why are you casting a void-pointer to char-pointer?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/twinshadow/progcee/pull/1/files#r4068665>
> .
>