[cairo] Compilation errors with MSVC after recent changes to 'cairo-path-stroke-traps.c'

John Emmas johne53 at tiscali.co.uk
Sat Oct 4 10:26:51 PDT 2014


Hi guys.  Since updating form git master just now I can no longer 
compile cairo-path-stroke-traps.c with Microsoft VC8.  I see around a 
dozen errors looking like this:-

     cairo-path-stroke-traps.c(302) : error C2440: 'initializing' : 
cannot convert from 'cairo_point_t' to 'cairo_fixed_t'

The stated line (302) seems to be newly added and looks like this:-

     cairo_point_t t[] = { in->point, *inpt, *outpt };

Similar errors are occurring at lines 303, 464 and 465.  MSVC seems to 
be objecting to the array elements for some reason.  I can't see an 
obvious problem but fortunately, all the newly added lines look quite 
similar (so hopefully that'll make it easy to fix!)  Thanks.

John


More information about the cairo mailing list