Package: r-base
Version: 2.15.1-4
Severity: minor
Usertags: goto-cc

While compiling the package using our research compiler infrastructure we
noticed the following undefined cast:

In src/library/grDevices/src/devPS.c, line 8238:

  if(!PSDeviceDriver(dev, file, paper, family, afms, encoding, bg, fg,
         width, height, (double)horizontal, ps, onefile,
         pagecentre, printit, cmd, title, fonts,
         colormodel, useKern, fillOddEven)) {

The cast (double)horizontal is either due to some confusion of arguments or
historic; the actual type of the 11th argument of PSDeviceDriver is RBoolean,
which is an enum. The resulting conversion from double to enum is undefined.

Best,
Michael

Attachment: pgpvndj86tdW8.pgp
Description: PGP signature

Reply via email to