mirror of https://github.com/arendst/Tasmota.git
Merge pull request #15470 from s-hadinger/Berry-fix-pointer-warning
Berry fix pointer warning
This commit is contained in:
commit
1b21201402
|
@ -214,8 +214,10 @@ static void save_proto_table(bvm *vm, void *fp, bproto *proto)
|
||||||
{
|
{
|
||||||
bproto **p = proto->ptab, **end;
|
bproto **p = proto->ptab, **end;
|
||||||
save_long(fp, proto->nproto); /* proto count */
|
save_long(fp, proto->nproto); /* proto count */
|
||||||
for (end = p + proto->nproto; p < end; ++p) {
|
if (p) {
|
||||||
save_proto(vm, fp, *p);
|
for (end = p + proto->nproto; p < end; ++p) {
|
||||||
|
save_proto(vm, fp, *p);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -223,9 +225,11 @@ static void save_upvals(void *fp, bproto *proto)
|
||||||
{
|
{
|
||||||
bupvaldesc *uv = proto->upvals, *end;
|
bupvaldesc *uv = proto->upvals, *end;
|
||||||
save_byte(fp, proto->nupvals); /* upvals count */
|
save_byte(fp, proto->nupvals); /* upvals count */
|
||||||
for (end = uv + proto->nupvals; uv < end; ++uv) {
|
if (uv) {
|
||||||
save_byte(fp, uv->instack);
|
for (end = uv + proto->nupvals; uv < end; ++uv) {
|
||||||
save_byte(fp, uv->idx);
|
save_byte(fp, uv->instack);
|
||||||
|
save_byte(fp, uv->idx);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue