placement-parser: Properly handle LONG_MAX != INT_MAX.