On Thu, Jun 26, 2008 at 06:53:22PM +0200, Kurt Roeckx <[EMAIL PROTECTED]> was 
heard to say:
> Package: aptitude
> Version: 0.4.11.6-1
> Severity: serious
> 
> Hi,
> 
> Your package is failing to build on some arches with the following
> error:
> cmdline_resolver.cc:239: error: format '%d' expects type 'int', but argument 
> 2 has type 'long unsigned int'
> 
> Guessing based on the affected arches you want to print a size_t.  You
> need a %zd for that.

  It's even more fun: it's a std::vector<T>::size_type, which AFAIK can
be defined to be any unsigned integer type.  Since I know this value
will always be small (it represents the number of archives in which a
package can be found), it's probably easier and more portable to
explicitly cast it to an int.

  Daniel



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to