Skip to content

Commit e6a969a

Browse files
authored
Update utils.cpp
1 parent 0924dc6 commit e6a969a

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

src/utils.cpp

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -31,16 +31,7 @@ int64_t FB_str64(const String &s) {
3131
return atoll(s.c_str());
3232
}
3333
String FB_64str(int64_t id) {
34-
String s;
35-
int32_t s1 = (int64_t)id % 1000000000;
36-
int32_t s2 = (int64_t)id / 1000000000;
37-
if (s2) {
38-
s += s2;
39-
s += abs(s1);
40-
} else {
41-
s += s1;
42-
}
43-
return s;
34+
return String(id);
4435
}
4536

4637
// упрощённый urlencode (до 38 ASCII + space)
@@ -106,4 +97,4 @@ void FB_unicode(String &uStr) {
10697
}
10798
}
10899
uStr = out;
109-
}
100+
}

0 commit comments

Comments
 (0)