A method which preserves the flux-quantization condition in all orders of perturbation theory is applied to the Ginzburg–Landau theory of type-II superconductors near the upper critical field. Expansions are obtained for the order parameter, the magnetic field, and the free energy; previous results are verified and extended to one higher order in Hc2 – Ha.