mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-20 11:30:18 +00:00
Update compiler.cpp
This commit is contained in:
parent
1cc24d40a2
commit
d70f8d8f18
@ -1244,7 +1244,6 @@ __EAT_DOTS_END:
|
||||
}else if constexpr(std::is_same_v<T, Str>){
|
||||
ss << 'S';
|
||||
for(char c: arg) ss.write_hex((unsigned char)c);
|
||||
ss.write_hex((unsigned char)0);
|
||||
}
|
||||
ss << '\n';
|
||||
}, token.value);
|
||||
@ -1347,6 +1346,7 @@ __EAT_DOTS_END:
|
||||
else PK_FATAL_ERROR();
|
||||
buffer[i/2] = c;
|
||||
}
|
||||
buffer[s.size()/2] = 0;
|
||||
return std::pair<char*, int>(buffer, s.size()/2);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user