vg_common_json: use %zu for size_t

Summary:
Fixes a compiler warning
```
../src/static_libs/vg_common/vg_common_json.c: In function '_get_key_val':
../src/static_libs/vg_common/vg_common_json.c:16:34: warning: format '%ld' expects argument of type 'long int', but argument 4 has type 'unsigned int' [-Wformat=]
```

Test Plan: ninja build

Reviewers: Hermet, jsuya

Reviewed By: jsuya

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D11327
This commit is contained in:
Yeongjong Lee 2020-02-13 11:30:27 +09:00
parent 2636853b7f
commit 17f0d23e37
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ static char*
_get_key_val(void *key)
{
static char buf[30];
snprintf(buf, sizeof(buf), "%ld", (size_t) key);
snprintf(buf, sizeof(buf), "%zu", (size_t) key);
return buf;
}