projects
/
paraslash.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3ead49b
)
Fix the ROUND_UP macro.
author
Andre Noll
<maan@systemlinux.org>
Wed, 11 Feb 2009 21:18:17 +0000
(22:18 +0100)
committer
Andre Noll
<maan@systemlinux.org>
Wed, 11 Feb 2009 21:18:17 +0000
(22:18 +0100)
Doooh.
para.h
patch
|
blob
|
history
diff --git
a/para.h
b/para.h
index fcc24746be9b18d5460292b42504898106131689..06eb8b30f617104051fb3260e5b17c261a04ec17 100644
(file)
--- a/
para.h
+++ b/
para.h
@@
-230,7
+230,8
@@
static inline long int para_random(unsigned max)
}
/** Round up x to a multiple of y */
-#define ROUND_UP(x, y) (((x) + ((y) - 1) / (y)) * (y))
+#define ROUND_UP(x, y) ((((x) + ((y) - 1)) / (y)) * (y))
+
/** Get the size of an array */
#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))