1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 12:32:20 +02:00

Linux fixes

This commit is contained in:
Brian Fiete 2020-09-29 08:53:36 -07:00
parent b13bee470c
commit a399e383fa
8 changed files with 41 additions and 35 deletions

View file

@ -639,7 +639,7 @@ void BfGNUMangler::Mangle(MangleContext& mangleContext, StringImpl& name, BfType
}
if ((val >= 1) && (val < 10))
{
val += (char)('0' + val - 1);
name += (char)('0' + val - 1);
}
else
{
@ -649,7 +649,7 @@ void BfGNUMangler::Mangle(MangleContext& mangleContext, StringImpl& name, BfType
while (val > 0)
{
*(strP--) = (char)((val % 0x10) + 'A');
*(--strP) = (char)((val % 0x10) + 'A');
val /= 0x10;
}