]> granicus.if.org Git - graphviz/commit
smyrna: avoid inadvertent double promotion in 'renderSelectedNodes'
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Thu, 3 Nov 2022 02:34:57 +0000 (19:34 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Fri, 4 Nov 2022 01:14:25 +0000 (18:14 -0700)
commiteaa2826d1282e3be9ea58ecc99e5e5485530be93
tree9b9688c47e4fdd2761b83d75a844ab90fd9253cc
parent5edf7d9ec7741cce56c4ed333415c9a930d12034
smyrna: avoid inadvertent double promotion in 'renderSelectedNodes'

Squashes two compiler warnings:

  topviewfuncs.c: In function ‘renderSelectedNodes’:
  topviewfuncs.c:283:41: warning: conversion from ‘double’ to ‘GLfloat’ {aka
    ‘float’} may change value [-Wfloat-conversion]
    283 |             glVertex3f(pos.x,pos.y,pos.z+0.001);
        |                                    ~~~~~^~~~~~
  topviewfuncs.c:285:50: warning: conversion from ‘double’ to ‘float’ may
    change value [-Wfloat-conversion]
    285 |             drawCircle(pos.x,pos.y,nodeSize,pos.z+0.001);
        |                                             ~~~~~^~~~~~
cmd/smyrna/topviewfuncs.c