Compiling warrnings and typos

Fix constant type to correct
Fix typo