[ghemical-devel] Ghemical Crash

Tommi Hassinen thassine at messi.uku.fi
Wed May 31 03:51:38 EDT 2006


> On Wed, 17 May 2006, Jason Rigby wrote:
>
>> Thanks for the reply Tommi,
>> I tried to compile Ghemical 2.01 but, as always, I ran into some 
>> issues.....
>
>> views.cpp:260: error: cast from 'void*' to 'i32u' loses precision
>> views.cpp: In function 'void apply_udata_as_cset(project*, void*)':
>> views.cpp:281: error: cast from 'void*' to 'i32u' loses precision
>> make[2]: *** [views.o] Error 1
>> make[2]: Leaving directory `/home/jason/Desktop/ghemical-2.01/src'
>> make[1]: *** [all] Error 2
>> make[1]: Leaving directory `/home/jason/Desktop/ghemical-2.01/src'
>> make: *** [all-recursive] Error 1
>> 
>> Again, any help would be appreciated!

Now I finally got some time to look at this ; here is a better fix.
Replace the line

fGL * ptr2 = (fGL *) ((i32u) udata + sizeof(i32s)); i32s counter = 0;

with this one:

ptr1++; fGL * ptr2 = (fGL *) ptr1; i32s counter = 0;

I hope this works better,

 	Tommi



More information about the ghemical-devel mailing list