diff dmd/mtype.c @ 658:50383e476c7e

Upgraded frontend to DMD 1.035
author Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
date Mon, 06 Oct 2008 16:22:11 +0200
parents 307ae566885f
children eef8ac26c66c
line wrap: on
line diff
--- a/dmd/mtype.c	Mon Oct 06 14:37:00 2008 +0200
+++ b/dmd/mtype.c	Mon Oct 06 16:22:11 2008 +0200
@@ -789,8 +789,8 @@
 
 TypeBasic::TypeBasic(TY ty)
 	: Type(ty, NULL)
-{   char *c;
-    char *d;
+{   const char *c;
+    const char *d;
     unsigned flags;
 
 #define TFLAGSintegral	1
@@ -935,7 +935,7 @@
 
 char *TypeBasic::toChars()
 {
-    return dstring;
+    return (char *)dstring;
 }
 
 void TypeBasic::toCBuffer2(OutBuffer *buf, HdrGenState *hgs, int mod)