Fixed float/double values parsing

This commit is contained in:
Martin Tůma 2025-01-06 20:12:28 +01:00
parent 0a4543ddcf
commit badd834b59

View File

@ -65,6 +65,7 @@ static bool dbl(CTX &ctx, double &val)
return false; return false;
memcpy(&val, ctx.bp, sizeof(val)); memcpy(&val, ctx.bp, sizeof(val));
ctx.bp += sizeof(val);
return true; return true;
} }
@ -77,6 +78,7 @@ static bool flt(CTX &ctx, float &val)
return false; return false;
memcpy(&val, ctx.bp, sizeof(val)); memcpy(&val, ctx.bp, sizeof(val));
ctx.bp += sizeof(val);
return true; return true;
} }