The evolution of the high-energy cut-off in the X-ray spectrum of GX 339−4 across a hard-to-soft transition