summaryrefslogtreecommitdiff
path: root/x2p/walk.c
diff options
context:
space:
mode:
authorNikola Knezevic <indy@tesla.rcub.bg.ac.yu>2001-08-25 00:10:42 +0200
committerNick Ing-Simmons <nik@tiuk.ti.com>2001-08-25 14:37:33 +0000
commitc5cf9ec268be725ef943af3a8c93c6ce5c5492de (patch)
tree415cacf6805c04fb7d24e868237d0690fc055fdf /x2p/walk.c
parentd54b56d55c935aeda35fad4725273ab2eb5a71a5 (diff)
downloadperl-c5cf9ec268be725ef943af3a8c93c6ce5c5492de.tar.gz
quiet down VC++ warnings in a2py.c and walk.c
Message-Id: <1065978076.20010824221042@tesla.rcub.bg.ac.yu> p4raw-id: //depot/perl@11744
Diffstat (limited to 'x2p/walk.c')
-rw-r--r--x2p/walk.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/x2p/walk.c b/x2p/walk.c
index 4d5f1d3a5e..f8fad55c3d 100644
--- a/x2p/walk.c
+++ b/x2p/walk.c
@@ -254,7 +254,7 @@ sub Pick {\n\
}
*d = '\0';
for (d=tokenbuf; *d; d++)
- *d += 128;
+ *d += (char)128;
str_cat(str,tokenbuf);
str_free(tmpstr);
str_cat(str,"/");
@@ -849,9 +849,9 @@ sub Pick {\n\
tmp2str=walk(1,level,ops[ops[node+2].ival+1].ival,&numarg,P_MIN);
for (t = tmp2str->str_ptr, d=tokenbuf; *t; d++,t++) {
if (*t == '&')
- *d++ = '$' + 128;
+ *d++ = '$' + (char)128;
else if (*t == '$')
- *d++ = '\\' + 128;
+ *d++ = '\\' + (char)128;
*d = *t + 128;
}
*d = '\0';
@@ -931,7 +931,7 @@ sub Pick {\n\
case '\\': case '"': case 'n': case 't': case '$':
break;
default: /* hide this from perl */
- *d++ = '\\' + 128;
+ *d++ = '\\' + (char)128;
}
}
*d = *t + 128;
@@ -1008,7 +1008,7 @@ sub Pick {\n\
strcpy(tokenbuf,"]");
else
strcpy(tokenbuf,"}");
- *tokenbuf += 128;
+ *tokenbuf += (char)128;
str_cat(str,tokenbuf);
}
}
@@ -1060,7 +1060,7 @@ sub Pick {\n\
str_set(str,";");
tmpstr = walk(0,level,ops[node+1].ival,&numarg,P_MIN);
for (s = tmpstr->str_ptr; *s && *s != '\n'; s++)
- *s += 128;
+ *s += (char)128;
str_scat(str,tmpstr);
str_free(tmpstr);
tab(str,level);
@@ -1069,7 +1069,7 @@ sub Pick {\n\
str = str_new(0);
tmpstr = walk(0,level,ops[node+1].ival,&numarg,P_MIN);
for (s = tmpstr->str_ptr; *s && *s != '\n'; s++)
- *s += 128;
+ *s += (char)128;
str_scat(str,tmpstr);
str_free(tmpstr);
tab(str,level);