franky fixes 64 bits portability code where we were casting a long as a glint