Fix compilation warning/error.

On OSX 10.7 after updating to ruby 2 I was getting this warning
turned error:

boolarray.h:137: warning: assuming signed overflow does not occur
when simplifying multiplication

I fixed it by casting the return value of buffer.size() to uint.