use unsigned constant

This commit is contained in:
Mark Andrews 2013-03-25 07:31:37 +11:00
parent 6f85ff3aac
commit 0266cebbf0

View file

@ -1871,7 +1871,7 @@ cfg_parse_dscp(cfg_parser_t *pctx, isc_dscp_t *dscp) {
"expected number");
return (ISC_R_UNEXPECTEDTOKEN);
}
if (pctx->token.value.as_ulong > 63) {
if (pctx->token.value.as_ulong > 63U) {
cfg_parser_error(pctx, CFG_LOG_NEAR,
"dscp out of range");
return (ISC_R_RANGE);