unsigned and size_t are not necessarily the same (depends on the compiler). I guess size_t is the more correct solution (here's more info if you're interested: http://stackoverflow.com/questions/131803/unsigned-int-vs-size-t )
I'll change it.