The high-energy X-ray spectrum of black hole candidate GX 339-4 during a transition