fix setcode int64 support

now checks up to 4 setcodes
Merge pull request #700 from sidschingis/patch-1

fix setcode int64 support