Use the correct format specifier for the return value of strlen().
authorChristoph Mallon <christoph.mallon@gmx.de>
Sat, 15 Nov 2008 22:13:37 +0000 (22:13 +0000)
committerChristoph Mallon <christoph.mallon@gmx.de>
Sat, 15 Nov 2008 22:13:37 +0000 (22:13 +0000)
[r23692]

mangle.c

index e3d719d..1098307 100644 (file)
--- a/mangle.c
+++ b/mangle.c
@@ -160,8 +160,8 @@ static void mangle_entity(entity_t *entity)
 
        /* TODO: mangle scope */
 
-       symbol_t *symbol = entity->base.symbol;
-       obstack_printf(&obst, "%u%s", strlen(symbol->string), symbol->string);
+       const char *name = entity->base.symbol->string;
+       obstack_printf(&obst, "%zu%s", strlen(name), name);
 
        if (entity->kind == ENTITY_FUNCTION) {
                mangle_parameters(&entity->declaration.type->function);