]> granicus.if.org Git - graphviz/commit
core POV: treat 'layerz' and 'z' as ints
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Tue, 8 Nov 2022 02:22:58 +0000 (18:22 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Fri, 11 Nov 2022 01:09:34 +0000 (17:09 -0800)
commit55a6ac3a4702aa7a48a14f8ac5be134fe397a775
treef371bb5f1c39ece67b89c97e4835f81402e3454a
parent3c96c240d87ac3a5ca67437d4cb5092a6a295e1a
core POV: treat 'layerz' and 'z' as ints

It is not clear why these were floats as they were operated on as ints. This
squashes the compiler warning:

  gvrender_core_pov.c: In function ‘pov_begin_layer’:
  gvrender_core_pov.c:459:18: warning: conversion from ‘int’ to ‘float’ may
    change value [-Wconversion]
    459 |         layerz = layerNum * -10;
        |                  ^~~~~~~~
plugin/core/gvrender_core_pov.c