compile err

Eddie Kohler kohler at icir.org
Mon Jul 22 22:36:59 EDT 2002


The particular fix for this bug:

> However, the compilation was stuck again at the conversion from
> `void *' to `int', which on my machine are 64-bit and 32-bit,
> respectively:
> 
> ../elements/standard/msqueue.cc: In function `String 
> MSQueue::read_handler (Element *, void *)':
> ../elements/standard/msqueue.cc:132: reinterpret_cast from `void *' to 
> `int' loses precision

is to change the reinterpret_cast<> to cast to 'intptr_t', not 'int'. (The
variable itself can stay an int.)

E




More information about the click mailing list