Fixed mismatched types uintptr and uint8