added parentheses g++ was warning about