You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While exploring your beautiful library, I noticed a minor inaccuracy in the code that may affect the outcome of compilation.
I propose a fix for the WriteBigEndian method, replacing the variable "out" with "buf"
While exploring your beautiful library, I noticed a minor inaccuracy in the code that may affect the outcome of compilation.
I propose a fix for the WriteBigEndian method, replacing the variable "out" with "buf"
template <typename T> inline void WriteBigEndian(char* buf, T val) { memcpy(out, static_cast<const T*>(&val), sizeof(T)); }
Corrected version:
template <typename T> inline void WriteBigEndian(char* buf, T val) { memcpy(buf, static_cast<const T*>(&val), sizeof(T)); }
The text was updated successfully, but these errors were encountered: