NSInteger is long on 64bits

Minor bug fixing
l
nsinteger is long on 64bits
divide by zero warning
Conform to analyse risk divide by 0 op
Merge pull request #2 from iLandes/master

Minor bug fixed