Infer scale from pointer type