After a cautious start and a subsequent uptick that resulted in a long spell in positive territory, the Canadian stock market suffered a setback of sorts in the closing minutes on Wednesday, but still managed to end with a small gain.