dart: Fix incorrect write in Float64 write method (#8290)

Co-authored-by: Llamadmiral <Llamadmiral@users.noreply.github.com>
Co-authored-by: Derek Bailey <derekbailey@google.com>
This commit is contained in:
Tyler Dunn
2024-05-28 21:13:10 -04:00
committed by GitHub
parent c6fce30e9b
commit 5adfac9fc3
2 changed files with 5 additions and 1 deletions

View File

@@ -386,7 +386,7 @@ class Builder {
/// Updates the [offset] pointer. This method is intended for use when writing structs to the buffer.
void putFloat64(double value) {
_prepare(_sizeofFloat64, 1);
_setFloat32AtTail(_tail, value);
_setFloat64AtTail(_tail, value);
}
/// Writes a Float32 to the tail of the buffer after preparing space for it.