Workaround for a likely gfortran bug in passing literals.

The 4.7.2 version of gfortran doesn't seem to like passing
the literal '2'; declaring it as variable fixes this problem.