"The bears have been running the show now for some time and that devaluation (on Tuesday) was a bit of a bash in the eye for the bears... but we haven't seen any strong fresh buying, it is more a short-covering rally," bullion broker Sharps Pixley chief Ross Norman said.
Gold was lifted by a weaker dollar, down 1.1 percent against a basket of currencies, and lower U.S. Treasury yields on doubts over whether the U.S. Federal Reserve will raise interest rates following China's devaluation.
"It's benefiting gold the most as major currency debasement should and would expect gold to test key resistance at $1,130," said Tai Wong, director of base and precious metals trading for BMO Capital Markets, referring to the yuan devaluation.
Read MoreColorado mine spill: Toxic wastewater leak far exceeds first estimates
"It's unclear how much more yuan devaluation we will see so gold sellers are likely to hold fire at the moment."
The weaker yuan would make it more expensive for China, the world's top consumer, to import gold, said OCBC Bank analyst Barnabas Gan.
"The potential for the monetary authorities to further devalue the currency may raise fears of inflation and may raise more general concerns about official intervention in financial markets," said David Jollie, head of research for Mitsui and Co Precious Metals, in a note.
"This could bring forward some customer purchasing of jewelry or other expensive items, potentially boosting demand for gold and platinum in particular."