replace usage of itoa with snprintf

This commit is contained in:
Anthony Pesch 2014-05-14 00:14:56 -07:00
parent 68e5833647
commit f01609c5aa
1 changed files with 3 additions and 3 deletions

View File

@ -44,9 +44,9 @@ int FinalizationPass::Run(HIRBuilder* builder) {
auto label = block->label_head;
while (label) {
if (!label->name) {
char* name = (char*)arena->Alloc(6 + 4 + 1);
xestrcpya(name, 6 + 1, "_label");
char* part = _itoa(label->id, name + 6, 10);
const size_t label_len = 6 + 4 + 1;
char* name = (char*)arena->Alloc(label_len);
xesnprintf(name, label_len, "_label%d", label->id);
label->name = name;
}
label = label->next;