Fixed problem with operator resolution in c