mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-21 12:00:18 +00:00
some fix
This commit is contained in:
parent
7182257413
commit
151deed5bc
@ -7,7 +7,7 @@ namespace pkpy{
|
|||||||
// Skip utf8 BOM if there is any.
|
// Skip utf8 BOM if there is any.
|
||||||
if (strncmp(source.data(), "\xEF\xBB\xBF", 3) == 0) index += 3;
|
if (strncmp(source.data(), "\xEF\xBB\xBF", 3) == 0) index += 3;
|
||||||
// Drop all '\r'
|
// Drop all '\r'
|
||||||
SStream ss(source.size());
|
SStream ss(source.size() + 1);
|
||||||
while(index < source.size()){
|
while(index < source.size()){
|
||||||
if(source[index] != '\r') ss << source[index];
|
if(source[index] != '\r') ss << source[index];
|
||||||
index++;
|
index++;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user