Fix 64-bit compatibility error in gpu.c