X-Git-Url: https://git.cameronkatri.com/mandoc.git/blobdiff_plain/236dae9fb3183b9c1d8bc6f77614797d65800987..a454003ad67073a51037d0dc5dcbf5b3cced1b8e:/validate.c diff --git a/validate.c b/validate.c index c923d914..b27eb2ee 100644 --- a/validate.c +++ b/validate.c @@ -1,4 +1,4 @@ -/* $Id: validate.c,v 1.69 2009/03/06 14:13:47 kristaps Exp $ */ +/* $Id: validate.c,v 1.70 2009/03/06 14:24:49 kristaps Exp $ */ /* * Copyright (c) 2008 Kristaps Dzonsons * @@ -484,7 +484,8 @@ check_sec(PRE_ARGS, ...) va_start(ap, n); for (;;) { - if (SEC_CUSTOM == (sec = va_arg(ap, enum mdoc_sed))) + sec = (enum mdoc_sec)va_arg(ap, int); + if (SEC_CUSTOM == sec) break; if (sec != mdoc->lastsec) continue;