From a85727c41263b83f5363b43a15ba02317f3b5081 Mon Sep 17 00:00:00 2001 From: Kyle Gunger Date: Sat, 4 May 2024 02:39:07 -0400 Subject: Color copy and free --- include/osm/types.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include/osm/types.h') diff --git a/include/osm/types.h b/include/osm/types.h index 5120098..08a0d03 100644 --- a/include/osm/types.h +++ b/include/osm/types.h @@ -57,7 +57,7 @@ bool osm_is_nan(OSMFloat f); /// if positive infinity, returns 1 /// if negative infinity, returns -1 /// otherwise returns 0 -uint8_t osm_is_infinity(OSMFloat f); +int8_t osm_is_infinity(OSMFloat f); @@ -88,10 +88,10 @@ OSMColor osm_rgb_to_color(uint8_t r, uint8_t g, uint8_t b); OSMColor osm_int_to_color(uint32_t c); /// Deep copy a color struct -OSMColor osm_color_copy(OSMColor color); +OSMColor osm_color_copy(const OSMColor *color); /// Free a color struct -void osm_color_free(OSMColor color); +void osm_color_free(OSMColor *color); -- cgit v1.2.3