Changeset a720da5 in nscp


Ignore:
Timestamp:
06/30/08 20:48:55 (5 years ago)
Author:
Michael Medin <michael@…>
Branches:
master, 0.4.0, 0.4.1, 0.4.2, stable
Children:
34e7428
Parents:
796d8ff
Message:

Fixed issue in the arraybuffer (one of the plit functions had a problem with multiple chars of the same)

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • changelog

    r31fea1e ra720da5  
    1111   *NOTICE* this is all reasons (so if the counter is missing or some such the same will happen not just when the instance is missing) 
    1212   Message will reflect reason. 
     13 * Fixed issue in the arraybuffer (one of the plit functions had a problem with multiple chars of the same) 
    1314 
    14152008-06-25 MickeM 
  • include/arrayBuffer.cpp

    r47b843a ra720da5  
    168168    if (p2 == std::wstring::npos) 
    169169      p2 = inBuf.size(); 
     170    if (p1 == p2 && p1 != inBuf.size()) { 
     171      p1++; 
     172      continue; 
     173    } 
    170174    // p1 = start of "this token" 
    171175    // p2 = end of "this token" (next split char) 
Note: See TracChangeset for help on using the changeset viewer.