mirror of
https://github.com/ChaiScript/ChaiScript.git
synced 2026-04-30 19:09:26 +08:00
Replace ssize_t with ptrdiff_t
This commit is contained in:
parent
6eb3481855
commit
306537d7c4
@ -489,7 +489,7 @@ namespace chaiscript {
|
||||
if (m_position.remaining() >= len) {
|
||||
const char *file_pos = &(*m_position);
|
||||
for (size_t pos = 0; pos < len; ++pos) {
|
||||
if (sym[pos] != *std::next(file_pos, static_cast<ssize_t>(pos))) {
|
||||
if (sym[pos] != *std::next(file_pos, static_cast<std::ptrdiff_t>(pos))) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user