Small fixes for compiler warnings.

One signedness issue, one 64-bit issue (using a 32-bit int instead of a potentially 64-bit size_t), and one trailing ';' on a method definition.