Mercurial > projects > ddmd
comparison dmd/IntegerExp.d @ 162:438eaa11eed4
updated build script to use dmd2.039
some missing methods implemented
author | korDen |
---|---|
date | Tue, 21 Sep 2010 14:59:56 +0400 |
parents | af1bebfd96a4 |
children | e3afd1303184 |
comparison
equal
deleted
inserted
replaced
161:584dc990e12f | 162:438eaa11eed4 |
---|---|
444 } | 444 } |
445 case TY.Tchar: | 445 case TY.Tchar: |
446 if (v == '\'') | 446 if (v == '\'') |
447 buf.writestring("'\\''"); | 447 buf.writestring("'\\''"); |
448 else if (isprint(cast(int)v) && v != '\\') | 448 else if (isprint(cast(int)v) && v != '\\') |
449 buf.printf("'%c'", cast(int)v); | 449 buf.printf("'%s'", cast(char)v); /// ! |
450 else | 450 else |
451 buf.printf("'\\x%02x'", cast(int)v); | 451 buf.printf("'\\x%02x'", cast(int)v); |
452 break; | 452 break; |
453 | 453 |
454 case TY.Tint8: | 454 case TY.Tint8: |