comparison dmd/statement.c @ 794:661384d6a936

Fix warnings on x86-64. By fvbommel.
author Christian Kamm <kamm incasoftware de>
date Fri, 28 Nov 2008 21:24:08 +0100
parents f08e0ff8d28c
children bc982f1ad106
comparison
equal deleted inserted replaced
793:f6dd817060fc 794:661384d6a936
2133 e = e->semantic(sc); 2133 e = e->semantic(sc);
2134 e = e->optimize(WANTvalue | WANTinterpret); 2134 e = e->optimize(WANTvalue | WANTinterpret);
2135 if (e->op == TOKstring) 2135 if (e->op == TOKstring)
2136 { 2136 {
2137 StringExp *se = (StringExp *)e; 2137 StringExp *se = (StringExp *)e;
2138 fprintf(stdmsg, "%.*s", (int)se->len, se->string); 2138 fprintf(stdmsg, "%.*s", (int)se->len, (char*)se->string);
2139 } 2139 }
2140 else 2140 else
2141 error("string expected for message, not '%s'", e->toChars()); 2141 error("string expected for message, not '%s'", e->toChars());
2142 } 2142 }
2143 fprintf(stdmsg, "\n"); 2143 fprintf(stdmsg, "\n");