diff options
author | rodri <rgl@antares-labs.eu> | 2024-08-05 10:41:11 +0000 |
---|---|---|
committer | rodri <rgl@antares-labs.eu> | 2024-08-05 10:41:11 +0000 |
commit | 05ae0d42a944f6c7d940a5e58eb90b619dadbfdb (patch) | |
tree | f9b7e7ff1c189ded71d965bdc3eccf27ef26e462 /util.c | |
parent | c06379ee3aa51d3adf456c8d126feebd1da9de70 (diff) | |
download | libgraphics-05ae0d42a944f6c7d940a5e58eb90b619dadbfdb.tar.gz libgraphics-05ae0d42a944f6c7d940a5e58eb90b619dadbfdb.tar.bz2 libgraphics-05ae0d42a944f6c7d940a5e58eb90b619dadbfdb.zip |
fix a double-free. add a generic value-swapping macro.
Diffstat (limited to 'util.c')
-rw-r--r-- | util.c | 20 |
1 files changed, 0 insertions, 20 deletions
@@ -32,26 +32,6 @@ fmax(double a, double b) return a > b? a: b; } -void -swapi(int *a, int *b) -{ - int t; - - t = *a; - *a = *b; - *b = t; -} - -void -swappt(Point *a, Point *b) -{ - Point t; - - t = *a; - *a = *b; - *b = t; -} - Point2 modulapt2(Point2 a, Point2 b) { |