Error cast from something to int loses precision

Error: cast from ‘RGF*’ to ‘int’ loses precision#

This happens with gcc4 on 64 bit systems.

You are likely doing something like

foo = (int)bar;

Instead, do

foo = (long)bar;

C/C++ CategoryComputing.C(info)