mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-04-27 05:59:03 +02:00
Add explicit uint->char cast to get rid of warning.
This commit is contained in:
@@ -26,7 +26,7 @@ body
|
|||||||
char* p = tmp.ptr + tmp.length;
|
char* p = tmp.ptr + tmp.length;
|
||||||
|
|
||||||
do {
|
do {
|
||||||
*--p = (val % 10) + '0';
|
*--p = cast(char)((val % 10) + '0');
|
||||||
} while (val /= 10);
|
} while (val /= 10);
|
||||||
|
|
||||||
return tmp [cast(size_t)(p - tmp.ptr) .. $];
|
return tmp [cast(size_t)(p - tmp.ptr) .. $];
|
||||||
|
|||||||
Reference in New Issue
Block a user