diff --git a/src/html/htmprint.cpp b/src/html/htmprint.cpp index f62cbc0133..8b957076f1 100644 --- a/src/html/htmprint.cpp +++ b/src/html/htmprint.cpp @@ -440,7 +440,7 @@ wxString wxHtmlPrintout::TranslateHeader(const wxString& instr, int page) num.Printf(wxT("%i"), page); r.Replace(wxT("@PAGENUM@"), num); - num.Printf(wxT("%lu"), m_PageBreaks.Count()-1); + num.Printf(wxT("%lu"), (unsigned long)(m_PageBreaks.Count() - 1)); r.Replace(wxT("@PAGESCNT@"), num); return r;