Fix build for the platforms where db_expr_t is not long

Sponsored by:	The FreeBSD Foundation
This commit is contained in:
lwhsu 2019-09-10 08:51:11 +00:00
parent 03c2eddb94
commit 5be64602ac

View File

@ -2226,7 +2226,7 @@ _DB_FUNC(_show, route, db_show_route_cmd, db_show_table, CS_OWN, NULL)
if (af == AF_INET && db_tok_number > UINT8_MAX) {
db_printf("Not a valid v4 octet: %ld\n",
db_tok_number);
(long)db_tok_number);
goto exit;
}
hextets[i] = db_tok_number;