Re: hub - r31452 - in abiword/trunk/src: text/ptbl/xp wp/ap/gtk wp/ap/xp

Simon Larochelle <[email protected]>
Newsgroups gmane.editors.abiword.devel
Message-ID <CAF8-HjGrhY6F+HQViHO8SC-hjrFg7XYTxEsKFYsJgAfBbJipNA@mail.gmail.com>
Hub,

Can we use %zu for printing size_t arguments? Would this cause
problems with some compilers?

Simon


> Modified: abiword/trunk/src/wp/ap/xp/ap_EditMethods.cpp
> ===================================================================
> --- abiword/trunk/src/wp/ap/xp/ap_EditMethods.cpp       2012-06-30 16:37:25 UTC (rev 31451)
> +++ abiword/trunk/src/wp/ap/xp/ap_EditMethods.cpp       2012-06-30 23:58:48 UTC (rev 31452)
> @@ -11095,7 +11095,7 @@
>                         {
>                                 std::set< std::string > xmlids;
>                                 rdf->addRelevantIDsForPosition( xmlids, point );
> -                               UT_DEBUGMSG(("xmlids.sz:%d\n", xmlids.size() ));
> +                               UT_DEBUGMSG(("xmlids.sz:%lu\n", (long unsigned)xmlids.size() ));
>
>                                 sparql = PD_DocumentRDF::getSPARQL_LimitedToXMLIDList( xmlids );
>                         }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.