X-Git-Url: https://git.llucax.com/software/druntime.git/blobdiff_plain/5a07183e26b7ca151959629420a83f59af5339f3..cae23267c83ae53f31305d1e93353dcafd0e02c6:/src/compiler/dmd/util/string.d diff --git a/src/compiler/dmd/util/string.d b/src/compiler/dmd/util/string.d index d63a5a1..3496bdd 100644 --- a/src/compiler/dmd/util/string.d +++ b/src/compiler/dmd/util/string.d @@ -8,16 +8,16 @@ */ module rt.util.string; -private import stdc.string; +private import core.stdc.string; char[] intToString( char[] buf, uint val ) { assert( buf.length > 9 ); - char* p = buf.ptr + buf.length; + auto p = buf.ptr + buf.length; do { - *--p = val % 10 + '0'; + *--p = cast(char)(val % 10 + '0'); } while( val /= 10 ); return buf[p - buf.ptr .. $];