fix 64-bitness in g_prints, sizeof doesn't seem to return int so I cast it