Test for 32bit or 64bit platform and use the appropriate max value.