mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-12 10:53:14 +01: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;
|
||||
|
||||
do {
|
||||
*--p = (val % 10) + '0';
|
||||
*--p = cast(char)((val % 10) + '0');
|
||||
} while (val /= 10);
|
||||
|
||||
return tmp [cast(size_t)(p - tmp.ptr) .. $];
|
||||
|
||||
Reference in New Issue
Block a user