Browse Source

Compilation fix

It seems the arguments of min have different types on 64bit platform.

git-svn-id: svn://bind10.isc.org/svn/bind10/branches/trac408@3493 e5f2f494-b856-4b98-b285-d166d9295462
Michal Vaner 14 years ago
parent
commit
3f191da3a7
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/lib/nsas/hash.cc

+ 2 - 1
src/lib/nsas/hash.cc

@@ -72,7 +72,8 @@ namespace nsas {
 // 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)
     //