One of the arguments to memset/memcpy is of boolean type, and we were by defaults assigning ptr type to all of them. I fixed that now.