]> git.llucax.com Git - software/druntime.git/blobdiff - src/compiler/dmd/util/string.d
Changed D 2.0 runtime to account for 'this' being changed from a pointer to a referen...
[software/druntime.git] / src / compiler / dmd / util / string.d
index d63a5a1e1cfd5d5113a002127e3cf21bb10c3f7e..3496bddd608fb8562da1912537158562aa89c9a6 100644 (file)
@@ -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 .. $];