Fix for line:13 integer expression expected

Patch for line 13. Tested from mac os, centos, redhat

Added some facility and feedback