This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gcc C++ app: need a double, but gcc converts back to long


it seems the author has not considered large files.
eg. FileSize returns:
 static_cast<int>(f.tellg() - begin_pos);
ie. an int

i think you'll need to do quite a few fixes for this,
and i'm not even sure you can make ifstream use
large files...

and this comment:
/**
* load entire file into buffer
*/

on the next function implies that you are going to need >4G RAM anyway...
(which, i suppose, you may have)

sorry i can't be of more help -- got to go to lunch.


jack



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]