diff options
author | james <james@e7ae566f-a301-0410-adde-c780ea21d3b5> | 2008-07-26 08:27:50 +0000 |
---|---|---|
committer | james <james@e7ae566f-a301-0410-adde-c780ea21d3b5> | 2008-07-26 08:27:50 +0000 |
commit | c373382c1edabd134c938e3c272ee40b5ee590b6 (patch) | |
tree | 934a209164285206461be81c86698d0c6172c83c /buffer.c | |
parent | Completely revamped the system for calling external programs and scripts: (diff) | |
download | openvpn-c373382c1edabd134c938e3c272ee40b5ee590b6.tar.xz |
Fixed compiler warnings in Windows build (MinGW).
git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3125 e7ae566f-a301-0410-adde-c780ea21d3b5
Diffstat (limited to 'buffer.c')
-rw-r--r-- | buffer.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -35,9 +35,9 @@ size_t array_mult_safe (const size_t m1, const size_t m2) { - const unsigned long long limit = 0xFFFFFFFF; + const size_t limit = 0xFFFFFFFF; unsigned long long res = (unsigned long long)m1 * (unsigned long long)m2; - if (unlikely(m1 > limit) || unlikely(m2 > limit) || unlikely(res > limit)) + if (unlikely(m1 > limit) || unlikely(m2 > limit) || unlikely(res > (unsigned long long)limit)) msg (M_FATAL, "attemped allocation of excessively large array"); return (size_t) res; } |