Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pp_(i_)negate: Don't needlessly call S_negate_string
Arguably it will be more common for users to want to negate an IV or NV, rather than a PV. Prior to this commit, `S_negate_string` was always called at the start of the OP and, if the target wasn't `SvPOKp`, that function just immediately returned. This commit moves the `SvPOKp` check into the `pp_` functions to avoid needless function calls.
- Loading branch information