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 (char*) instead of (void*)?

On Thu, Jun 18, 2009 at 12:19 PM, Marc Rios Valles<m...@c3po.es> wrote:
> 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, Barcelona
> Tel. 93 417 99 55 - Fax 93 253 12 80
>
>> 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<m...@c3po.es> 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->start (_data->data) - (void*)0);
>> >
>> > Visual Studio returns an error say¡ng that size of void* is unkown. The
>> > exact error is:
>> >
>> > pkcs11h-threading.c(477) : error C2036: 'void *' : unknown size
>> >
>> > What do you think?
>> > What do you want to rest?
>> >
>> > I think that if you rest 0, casting whatever you want, is as not doing
>> > nothing, isn't it?
>> >
>> > Thanks
>> >
>> > --
>> > Marc Rios Vallès
>> > m...@c3po.es
>> >
>> > C3PO, S.A.
>> > http://www.c3po.es
>> > C/ Alejandro Goicoechea, 6 Local 9 - 08960 St. Just Desvern, Barcelona
>> > Tel. 93 417 99 55 - Fax 93 253 12 80
>> >
>> >
>> > _______________________________________________
>> > opensc-devel mailing list
>> > opensc-devel@lists.opensc-project.org
>> > http://www.opensc-project.org/mailman/listinfo/opensc-devel
_______________________________________________
opensc-devel mailing list
opensc-devel@lists.opensc-project.org
http://www.opensc-project.org/mailman/listinfo/opensc-devel

Reply via email to