Fix bug in setArgs for 32bit systems

Thanks to Theodore Omtzigt for reporting!