- wxFileOffset iRc = Tell();
- if ( iRc != -1 ) {
- // @ have to use const_cast :-(
- wxFileOffset iLen = ((wxFile *)this)->SeekEnd();
- if ( iLen != -1 ) {
+ wxFileSize_t iRc = Tell();
+ if ( iRc != wxInvalidOffset ) {
+ // have to use const_cast :-(
+ wxFileSize_t iLen = ((wxFile *)this)->SeekEnd();
+ if ( iLen != wxInvalidOffset ) {