Skip to content

Commit

Permalink
Update utils.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
GyverLibs authored Feb 4, 2024
1 parent 0924dc6 commit e6a969a
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions src/utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,7 @@ int64_t FB_str64(const String &s) {
return atoll(s.c_str());
}
String FB_64str(int64_t id) {
String s;
int32_t s1 = (int64_t)id % 1000000000;
int32_t s2 = (int64_t)id / 1000000000;
if (s2) {
s += s2;
s += abs(s1);
} else {
s += s1;
}
return s;
return String(id);
}

// упрощённый urlencode (до 38 ASCII + space)
Expand Down Expand Up @@ -106,4 +97,4 @@ void FB_unicode(String &uStr) {
}
}
uStr = out;
}
}

0 comments on commit e6a969a

Please sign in to comment.