Fixing error that my compiler on mac didn't throw