Fix httpstream so it doesn't error on youtube responses, and fix FromDoubleLE to not use big endian, but rather use little endian

This commit is contained in:
2026-11-21 19:40:34 -06:00
parent 7649a1ad4c
commit f6f81bf909
5 changed files with 28 additions and 23 deletions
+2 -2
View File
@@ -150,7 +150,7 @@ void BitConverter::FromUint16BE(uint8_t &b, uint16_t v) {
}
void BitConverter::FromDoubleLE(uint8_t &b, double v) {
FromUint64BE(b, ToUintBits(v));
FromUint64LE(b, ToUintBits(v));
}
void BitConverter::FromFloatLE(uint8_t &b, float v) {
FromUint32LE(b, ToUint32Bits(v));
@@ -341,4 +341,4 @@ bool BitConverter::TryParseDouble(const std::string &str, double &val) {
}
}
} // namespace Tesses::Framework::Serialization
} // namespace Tesses::Framework::Serialization