fix conversion warnings (in gc.c)

Those warnings are not enabled by default, but getting rid of them doesn't hurt.