Fixed unspecified order of argument evaluation.

This will hopefully fix gcc builds on Linux.