[mythtv] [mythtv-commits] mythtv commit: r12715 - in trunk/mythplugins/mythmusic/mythmusic by paulh

Janne Grunau janne-mythtv at grunau.be
Sun Feb 4 19:55:07 UTC 2007


On Sunday 04 February 2007 20:23:50 Stuart Morgan wrote:
> On Sunday 4 February 2007 18:32, Stuart Morgan wrote:
> > One more problem.
> >
> > directoryfinder won't compile under gcc 4.1.2
> >
> > directoryfinder.cpp: In member function 'virtual void
> > DirectoryFinder::keyPressEvent(QKeyEvent*)':
> > directoryfinder.cpp:52: error: cast from 'void*' to 'int' loses
> > precision directoryfinder.cpp: In member function 'void
> > DirectoryFinder::OKPressed()': directoryfinder.cpp:214: error: cast
> > from 'void*' to 'int' loses precision
>
> FWIW it's a 64bit issue. A pointer is 64bits, int is 32bits. My
> solution was just to change it from an int to int64_t but I'll let
> you decide what's best.

without looking at the code, intptr_t is probably the least wrong type. 
But casting pointers to integral types should be avoided.

janne 


More information about the mythtv-dev mailing list