peek inversion handling

Modified: src/pointer-stack.c