]> granicus.if.org Git - graphviz/commit
smyrna: use a more appropriate type for 'ComboValuesCount'
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Thu, 3 Nov 2022 02:20:41 +0000 (19:20 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Fri, 4 Nov 2022 01:14:25 +0000 (18:14 -0700)
commit2e02380d97d62b70d6bbe581eb554fbe941306c5
tree9573dd4442bb55526f2f5b7895288a8a471c907a
parentb4258fced93327cafc77bf12802a638eadd22d74
smyrna: use a more appropriate type for 'ComboValuesCount'

Squashes two compiler warnings:

  gui/gui.c:94:96: warning: conversion to ‘size_t’ {aka ‘long unsigned
    int’} from ‘int’ may change the sign of the result [-Wsign-conversion]
     94 |   attr[attrcount].ComboValuesCount - 1,
        |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
  gui/gui.c:95:78: warning: conversion to ‘size_t’ {aka ‘long unsigned
    int’} from ‘int’ may change the sign of the result [-Wsign-conversion]
     95 |   attr[attrcount].ComboValuesCount,
        |   ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
cmd/smyrna/smyrnadefs.h