[cvs-nhc98] Fix a bug in translating (n+k) patterns to code.