[svn] commit: r3493 - /branches/trac408/src/lib/nsas/hash.cc
BIND 10 source code commits
bind10-changes at lists.isc.org
Tue Nov 9 08:52:09 UTC 2010
Author: vorner
Date: Tue Nov 9 08:52:08 2010
New Revision: 3493
Log:
Compilation fix
It seems the arguments of min have different types on 64bit platform.
Modified:
branches/trac408/src/lib/nsas/hash.cc
Modified: branches/trac408/src/lib/nsas/hash.cc
==============================================================================
--- branches/trac408/src/lib/nsas/hash.cc (original)
+++ branches/trac408/src/lib/nsas/hash.cc Tue Nov 9 08:52:08 2010
@@ -72,7 +72,8 @@
// Constructor.
Hash::Hash(uint32_t tablesize, uint32_t maxkeylen, bool randomise) :
- tablesize_(tablesize), maxkeylen_(min(maxkeylen, (255 - sizeof(uint16_t))))
+ tablesize_(tablesize), maxkeylen_(min<uint32_t>(maxkeylen,
+ (255 - sizeof(uint16_t))))
{
// (Code taken from BIND-9)
//
More information about the bind10-changes
mailing list