fixed merge

This commit is contained in:
2023-12-03 18:02:15 +03:00
6 changed files with 110 additions and 79 deletions

View File

@@ -74,7 +74,12 @@ public:
sprintf(body, "%d", s);
}
}
String(long s) {
String((long long)s);
}
String(long long s) {
length = 0;
body = new char[1];
body[0] = '\0';
@@ -87,7 +92,7 @@ public:
}
length = size;
body = new char[size + 1];
sprintf(body, "%ld", s);
sprintf(body, "%lld", s);
}
}