summaryrefslogtreecommitdiffstats
path: root/libraries/pack200/src/utils.h
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/pack200/src/utils.h')
-rw-r--r--libraries/pack200/src/utils.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/libraries/pack200/src/utils.h b/libraries/pack200/src/utils.h
index 5a3dc8f6..3bd2dae7 100644
--- a/libraries/pack200/src/utils.h
+++ b/libraries/pack200/src/utils.h
@@ -35,17 +35,17 @@ void *must_malloc(size_t size);
inline size_t scale_size(size_t size, size_t scale)
{
- return (size > PSIZE_MAX / scale) ? OVERFLOW : size * scale;
+ return (size > PSIZE_MAX / scale) ? OVERFLOW : size * scale;
}
inline size_t add_size(size_t size1, size_t size2)
{
- return ((size1 | size2 | (size1 + size2)) > PSIZE_MAX) ? OVERFLOW : size1 + size2;
+ return ((size1 | size2 | (size1 + size2)) > PSIZE_MAX) ? OVERFLOW : size1 + size2;
}
inline size_t add_size(size_t size1, size_t size2, int size3)
{
- return add_size(add_size(size1, size2), size3);
+ return add_size(add_size(size1, size2), size3);
}
struct unpacker;