On 11 November 2010 22:11, Kuba Ober <[email protected]> wrote:
>
> On Nov 11, 2010, at 3:59 PM, Svenn Are Bjerkem wrote:
>
>> Hi,
>> Got past the w reuse problem that Tim mentioned only to stop on files.cpp:
>> files.cpp: In function ‘void getfile(QAction*, void*, void*)’:
>> files.cpp:725:19: error: cast from ‘void*’ to ‘int’ loses precision
>>
>> void getfile(QAction* a, void* mode, void* crashfn)
>> {
>> ...
>>   int idx = (int)mode; <-- 4.5 doesn't like this
>>
>> Any idea what to do?
>
> Alternatively, try
>
> int idx = reinterpret_cast<int>(mode);
>

a (long)mode did the trick for that particular line, and yes, I am on 64 bit.

The next issues
files.cpp:1794:39: error: invalid conversion from ‘const char*’ to ‘char*’

         if ((pdchar = strchr(str, '.')) != NULL)

files.cpp:1802:40: error: invalid conversion from ‘const char*’ to ‘char*’
         if ((pdchar = strrchr(str, '/')) != NULL)

Definition of str is:
   QByteArray str = filename.toLocal8Bit();
But I'm not sure if it is str or pdchar that gcc complains about.

Looking forward to google code

-- 
Svenn

_______________________________________________
Xcircuit-dev mailing list
[email protected]
http://www.opencircuitdesign.com/mailman/listinfo/xcircuit-dev

Reply via email to