Commit 0edf7cb6 authored by Johnny Jazeix's avatar Johnny Jazeix
Browse files

Modify a return value for windows.

parent 76ecd884
......@@ -100,10 +100,12 @@ void TokenSource::open(const char *filename){
#if defined (WIN32)|| !defined(_POSIX_MAPPED_FILES)
if(, ios::in)){
_is_file_opened = true;, ios::in);
throw Error::_OPEN;
_is_file_opened = true;
_file.seekg (0, ios::end);
TokenSource::_filesize = _file.tellg();
_file.seekg (0, ios::beg);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment