diff options
Diffstat (limited to 'test/lheap.c')
-rw-r--r-- | test/lheap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/lheap.c b/test/lheap.c index 4b851e8..d3e165e 100644 --- a/test/lheap.c +++ b/test/lheap.c @@ -91,7 +91,7 @@ main(void) for(i = 0; i < NOBJS; i++) { sprintf(buf, "%03d-", i); for(j = 4; j < i; j++) - buf[j] = '0' + j % 10; + buf[j] = (char)('0' + j % 10); if(j > 4) buf[j] = '\0'; |