This commit is contained in:
Roman Perepelitsa 2021-06-10 10:15:02 +02:00
commit f5d61840ae
6 changed files with 64 additions and 35 deletions

View file

@ -54,7 +54,7 @@ long ParseInt(const char* s) {
}
size_t ParseSizeT(const char* s) {
static_assert(sizeof(long) <= sizeof(size_t));
static_assert(sizeof(long) <= sizeof(size_t), "");
long res = ParseLong(s);
return res >= 0 ? res : -1;
}