This commit is contained in:
2023-12-03 18:06:42 +03:00
parent 786d702c72
commit f4c7353741
2 changed files with 5 additions and 7 deletions

View File

@@ -75,16 +75,14 @@ public:
}
}
String(long s) {
String((long long)s);
}
String(long s) : String((long long)s) { }
String(long long s) {
length = 0;
body = new char[1];
body[0] = '\0';
if (s >= 0) {
long s_ = s;
long long s_ = s;
long size = 1;
while (s_ >= 10) {
s_ = s_ / 10;