Ignore:
Timestamp:
Mar 11, 2016, 12:11:22 PM (3 years ago)
Author:
lindanl
Message:

Bug fixed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/grep_engine.cpp

    r4968 r4969  
    5252
    5353
    54 bool GrepEngine::finalLineIsUnterminated(char * mFileBuffer, int mFileSize) const {
     54bool GrepEngine::finalLineIsUnterminated(char * mFileBuffer, size_t mFileSize) const {
    5555    if (mFileSize == 0) return false;
    5656    unsigned char end_byte = static_cast<unsigned char>(mFileBuffer[mFileSize-1]);
     
    7070void GrepEngine::doGrep(const std::string & fileName) {
    7171    std::string mFileName = fileName;
    72     int mFileSize;
     72    size_t mFileSize;
    7373    char * mFileBuffer;
    7474
     
    7777    if (exists(file)) {
    7878        if (is_directory(file)) {
    79             return false;
     79            return;
    8080        }
    8181    } else {
    8282        std::cerr << "Error: cannot open " << mFileName << " for processing. Skipped.\n";
    83         return false;
     83        return;
    8484    }
    8585
     
    153153void GrepEngine::grepCodeGen(std::string moduleName, re::RE * re_ast, bool isNameExpression) {
    154154                           
    155     Module * M = new Module("moduleName", getGlobalContext());
     155    Module * M = new Module(moduleName, getGlobalContext());
    156156   
    157157    IDISA::IDISA_Builder * idb = GetIDISA_Builder(M);
     
    184184    setParsedCodePointSet();
    185185    char * mFileBuffer = getUnicodeNameDataPtr();
    186     int mFileSize = getUnicodeNameDataSize();
     186    size_t mFileSize = getUnicodeNameDataSize();
    187187    std::string mFileName = "Uname.txt";
    188188
Note: See TracChangeset for help on using the changeset viewer.