aboutsummaryrefslogtreecommitdiff
path: root/Source/CParse
diff options
context:
space:
mode:
Diffstat (limited to 'Source/CParse')
-rw-r--r--Source/CParse/parser.y2
-rw-r--r--Source/CParse/templ.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/Source/CParse/parser.y b/Source/CParse/parser.y
index ab4a0fb30..a3c5e73bf 100644
--- a/Source/CParse/parser.y
+++ b/Source/CParse/parser.y
@@ -744,7 +744,7 @@ static String *remove_block(Node *kw, const String *inputcode) {
String *name = Getattr(kw,"name");
if (name && (Cmp(name,"noblock") == 0)) {
char *cstr = Char(inputcode);
- size_t len = Len(inputcode);
+ int len = Len(inputcode);
if (len && cstr[0] == '{') {
--len; ++cstr;
if (len && cstr[len - 1] == '}') { --len; }
diff --git a/Source/CParse/templ.c b/Source/CParse/templ.c
index 9768f1b99..e575073a4 100644
--- a/Source/CParse/templ.c
+++ b/Source/CParse/templ.c
@@ -237,7 +237,7 @@ String *partial_arg(String *s, String *p) {
if (!c) {
return Copy(s);
}
- prefix = NewStringWithSize(cp, c - cp);
+ prefix = NewStringWithSize(cp, (int)(c - cp));
newarg = Copy(s);
Replace(newarg, prefix, "", DOH_REPLACE_ANY | DOH_REPLACE_FIRST);
Delete(prefix);