mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
*Core: HexString with count = 0 fix
git-svn-id: svn://ultimatepp.org/upp/trunk@2660 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
a123aaf505
commit
0e1425d475
1 changed files with 3 additions and 0 deletions
|
|
@ -544,6 +544,9 @@ String Decode64(const String& s)
|
|||
|
||||
String HexString(const byte *s, int count, int sep, int sepchr)
|
||||
{
|
||||
ASSERT(count >= 0);
|
||||
if(count == 0)
|
||||
return String();
|
||||
StringBuffer b(2 * count + (count - 1) / sep);
|
||||
static const char itoc[] = "0123456789abcdef";
|
||||
int i = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue