X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=tools%2Fcvt_data.c;h=7138da040c756acfcc9014d429de03d68353748b;hb=efea2951f8ca2f939ea9297ea4a035e7e99ef714;hp=2f321813d153d0f5e030f20aeaecfa86cb62b1c4;hpb=ef6b315df434af2d9f1336be3247a08b816306a4;p=ia32rtools.git diff --git a/tools/cvt_data.c b/tools/cvt_data.c index 2f32181..7138da0 100644 --- a/tools/cvt_data.c +++ b/tools/cvt_data.c @@ -517,7 +517,10 @@ int main(int argc, char *argv[]) fprintf(fout, "\t\t "); } - if (type == DXT_BYTE && words[w][0] == '\'') { + if (type == DXT_BYTE + && (words[w][0] == '\'' + || (w + 1 < wordc && words[w + 1][0] == '\''))) + { // string; use asciz for most common case if (w == wordc - 2 && IS(words[w + 1], "0")) { fprintf(fout, ".asciz \"");