Add explicit uint->char cast to get rid of warning.

This commit is contained in:
Christian Kamm
2008-10-30 10:15:42 +01:00
parent 07f35424f1
commit 0e5d9f970b

View File

@@ -26,7 +26,7 @@ body
char* p = tmp.ptr + tmp.length;
do {
*--p = (val % 10) + '0';
*--p = cast(char)((val % 10) + '0');
} while (val /= 10);
return tmp [cast(size_t)(p - tmp.ptr) .. $];