It will work... :)
On Thu, Jun 18, 2009 at 12:53 PM, Marc Rios Valles wrote:
> Hi Alon,
>
> I have changed for this:
>
> ret = (unsigned)((char*)_data->start (_data->data) - (char*)0);
>
> And it compiles, but I don't know if it works...
>
> Thanks for all
>
> --
> Marc Rios Vallès
> m...@c3po.es
Hi Alon,
I have changed for this:
ret = (unsigned)((char*)_data->start (_data->data) - (char*)0);
And it compiles, but I don't know if it works...
Thanks for all
--
Marc Rios Vallès
m...@c3po.es
C3PO, S.A.
http://www.c3po.es
C/ Alejandro Goicoechea, 6 Local 9 - 08960 St. Just Desvern, Barce
It looks like pointer arithmetic.
When you subtract two pointers the result is number of elements and that
means that element size must be known.
My C is rather "rusty" these days so forgive me if I'm wrong :-)
Anders
Marc Rios Valles wrote:
> Hi,
>
>
> I have tried with VS 6.0, VS 2005 and VS
All we need here is to get an integer out of a pointer.
The problem is that the pointer may be 64bit or 32bit.
A simple cast did not work in WIN32 and WIN64 mingw build, so I use
the method of subtract two pointers.
This method should end with an offset which is an integer...
Can you please try (ch
Hi,
I have tried with VS 6.0, VS 2005 and VS 2008, all with the same results...
I don't know why it wants a size... But Does this operation have any sense??
rest 0??
--
Marc Rios Vallès
m...@c3po.es
C3PO, S.A.
http://www.c3po.es
C/ Alejandro Goicoechea, 6 Local 9 - 08960 St. Just Desvern,
Strange...
Why does it need the size?
Which version of visual studio do you use?
On Thu, Jun 18, 2009 at 11:40 AM, Marc Rios Valles wrote:
> Hi guys,
>
> I'm compiling pkcs11-helper 1.0.7 and I have found an error.
>
> In the file pkcs11h-threading.c at line 477 we see:
>
> ret = (unsigned)(_data-