Minor fixes for stricter compiler warnings

For the following warnings:
`-Wsign-conversion
-Wreceiver-is-weak`