fixing a compiler warning
Merge branch '#524' of github.com:GalSim-developers/GalSim into #524