Fix build break because of unsigned/signed mismatch

In my environment (gcc 4.9.1) this wasn't building. Simple fix similar to the one a couple of lines above.