diff options
author | Nick Mathewson <nickm@torproject.org> | 2007-02-28 16:56:07 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2007-02-28 16:56:07 +0000 |
commit | dae5fc798271db3b993be1b38cfada73e05dab68 (patch) | |
tree | 088205a2ec3a8f904b9ed0c10b87c51566481e9c /src/common/torint.h | |
parent | ebf1862382d25f155228325a85a3c11ab48b7b86 (diff) | |
download | tor-dae5fc798271db3b993be1b38cfada73e05dab68.tar.gz tor-dae5fc798271db3b993be1b38cfada73e05dab68.zip |
r11981@catbus: nickm | 2007-02-28 11:55:27 -0500
Clamp declarable bandwidth at INT32_MAX, not INT_MAX.
svn:r9677
Diffstat (limited to 'src/common/torint.h')
-rw-r--r-- | src/common/torint.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/common/torint.h b/src/common/torint.h index f1c0f1a620..6cb43a3b33 100644 --- a/src/common/torint.h +++ b/src/common/torint.h @@ -120,6 +120,9 @@ typedef unsigned int uint32_t; #ifndef UINT32_MAX #define UINT32_MAX 0xffffffffu #endif +#ifndef INT32_MAX +#define INT32_MAX 0x7fffffffu +#endif #endif #if (SIZEOF_LONG == 4) |