On 26.07.2015 03:24,
pedr...@lycos.com wrote:
> I came across this with 3 parameters
>
> void Interpwrap::setConvFunc (InterpConvFunc func, void *obj2, int num_bytes)
> {
> _conv_func = func;
> _conv_obj2 = obj2;
> _conv_val_len = num_bytes;
> }
>
> The only call anywhere in package has 2 arguments
>
> setConvFunc (defaultConvFunc, this);
> num_bytes is defined as 4 in a header file.
this has nothing to do with the problem. In method you create
new variable with the same name.
> With a 64-bit compiler (gcc, Intel or open64) _conv_val_len ends up as 8.
> Okay with 32-bit compilers.
> What happened?
Are you sure there isn't a second, overloaded version?
If you use semi decent IDE, you can click on a call to function
(a function name in the line
setConvFunc (defaultConvFunc, this); )
and under context menu there should be something
like 'follow symbol under cursor F2'.
bartekltg