Commit 7f5a1e39 by josé bollo

fix compiler warning

Change-Id: I41d7f44585da5ff7078880b18c042ce60983a1cb
Signed-off-by: josé bollo's avatarJosé Bollo <jose.bollo@iot.bzh>
parent b87c6ecc
......@@ -51,13 +51,13 @@ static int process(const char *template, struct mustach_itf *itf, void *closure,
return depth ? MUSTACH_ERROR_UNEXPECTED_END : 0;
}
if (emit)
fwrite(template, beg - template, 1, file);
fwrite(template, (size_t)(beg - template), 1, file);
term = strstr(template, clstr);
if (term == NULL)
return MUSTACH_ERROR_UNEXPECTED_END;
template = term + cllen;
beg += oplen;
len = term - beg;
len = (size_t)(term - beg);
c = *beg;
switch(c) {
case '!':
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment