mirror of
https://github.com/tumic0/QtPBFImagePlugin.git
synced 2025-01-18 12:02:10 +01:00
Fixed float/double values parsing
This commit is contained in:
parent
0a4543ddcf
commit
badd834b59
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user