mirror of
https://github.com/ChaiScript/ChaiScript.git
synced 2026-11-09 14:50:25 +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) {
|
if (m_position.remaining() >= len) {
|
||||||
const char *file_pos = &(*m_position);
|
const char *file_pos = &(*m_position);
|
||||||
for (size_t pos = 0; pos < len; ++pos) {
|
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;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user