I believe that is actually correct (though it's admittedly confusing): the Lanczos() function there expects to be passed an x value in [-1, 1] (note that the calling code divides by filterwidth). In turn, that s variable there is the sinc filter itself, which we'd like to have span a few cycles, and the "lanczos = std::sin(x) / x" variable is the Lanczos window.
This is admittedly confusing and not at all clear if you just look at the Lanczos() function. I've made a note to clean that up to be a little more standard in the next edition.
Thanks,
Matt