Fixed integer comparison

Also added .main.cpp.swp (vim's file) to the .gitignore