Fixed constant used in timespan check to be a long long.

This commit fixes the issue that mperzi noted in #368.

It builds under GCC on x86, but I am unable to test on AIX.