Browse Source

[1784] signed/unsigned fix

JINMEI Tatuya 13 years ago
parent
commit
bd2da89767
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/lib/asiodns/dns_service.cc

+ 1 - 1
src/lib/asiodns/dns_service.cc

@@ -210,7 +210,7 @@ void DNSService::addServerTCPFromFD(int fd, int af) {
 }
 
 void DNSService::addServerUDPFromFD(int fd, int af, ServerFlag options) {
-    if ((~SERVER_DEFINED_FLAGS & static_cast<int>(options)) != 0) {
+    if ((~SERVER_DEFINED_FLAGS & static_cast<unsigned int>(options)) != 0) {
         isc_throw(isc::InvalidParameter, "Invalid DNS/UDP server option: "
                   << options);
     }