mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-01-31 12:00:38 +00:00
minor: fix ast_function_label
This commit is contained in:
parent
1d3fdea432
commit
5375400e85
1 changed files with 2 additions and 2 deletions
4
ast.c
4
ast.c
|
@ -1061,10 +1061,10 @@ const char* ast_function_label(ast_function *self, const char *prefix)
|
|||
from = self->labelbuf + sizeof(self->labelbuf)-1;
|
||||
*from-- = 0;
|
||||
do {
|
||||
unsigned int digit = id % 10;
|
||||
*from = digit + '0';
|
||||
*from-- = (id%10) + '0';
|
||||
id /= 10;
|
||||
} while (id);
|
||||
++from;
|
||||
memcpy(from - len, prefix, len);
|
||||
return from - len;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue