projects
/
graphviz
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5a24370
)
pack acmpf: simplify some early return code
author
Matthew Fernandez
<matthew.fernandez@gmail.com>
Wed, 21 Sep 2022 02:17:20 +0000
(19:17 -0700)
committer
Matthew Fernandez
<matthew.fernandez@gmail.com>
Thu, 22 Sep 2022 00:00:18 +0000
(17:00 -0700)
lib/pack/pack.c
patch
|
blob
|
history
diff --git
a/lib/pack/pack.c
b/lib/pack/pack.c
index 76def633b1815b2d1c91257a2378ca1d45aa6000..530a796ce7a72e0c57a4ba837ac85d32dc752863 100644
(file)
--- a/
lib/pack/pack.c
+++ b/
lib/pack/pack.c
@@
-591,8
+591,8
@@
static int acmpf(const void *X, const void *Y)
double dX = x->height + x->width;
double dY = y->height + y->width;
if (dX < dY) return 1;
-
else
if (dX > dY) return -1;
-
else
return 0;
+ if (dX > dY) return -1;
+ return 0;
}
#define INC(m,c,r) \