Fixed a gcc -Wall bug

TODO fix less, my proposed method wont work, see comments as to why!