diff --git a/src/hb-aat-var-hvgl-table.cc b/src/hb-aat-var-hvgl-table.cc index 191991027..3849e8eaf 100644 --- a/src/hb-aat-var-hvgl-table.cc +++ b/src/hb-aat-var-hvgl-table.cc @@ -379,8 +379,6 @@ PartComposite::apply_to_coords (hb_array_t out_coords, } } -static constexpr std::complex complex_i {0, 1}; - void PartComposite::apply_to_transforms (hb_array_t> transforms, hb_array_t coords) const @@ -497,7 +495,7 @@ PartComposite::apply_to_transforms (hb_array_t> transform if (extremum_rotation_delta) { std::complex t {(double) extremum_translation_delta.x, (double) extremum_translation_delta.y}; - std::complex _1_minus_e_iangle = 1. - std::exp (complex_i * (double) extremum_rotation_delta); + std::complex _1_minus_e_iangle = 1. - std::exp (std::complex (0, (double) extremum_rotation_delta)); std::complex eigen = t / _1_minus_e_iangle; double center_x = eigen.real (); double center_y = eigen.imag ();