From 67ba5cd777f434366f7ca246852412eb215e7380 Mon Sep 17 00:00:00 2001 From: Manuel Saelices Date: Thu, 30 Jan 2025 23:32:08 +0100 Subject: [PATCH] Fix changelog typo Signed-off-by: Manuel Saelices --- docs/changelog.md | 2 +- stdlib/src/builtin/simd.mojo | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/changelog.md b/docs/changelog.md index 38508b83f4..db31406830 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -101,7 +101,7 @@ what we publish. ### Standard library changes - New `SIMD.from_bytes()` and `SIMD.as_bytes()` functions to convert a list of bytes - to an scalars and vice versa, accepting the endianess as an argument. Similar + to a list of scalars and vice versa, accepting the endianess as an argument. Similar to Python `int.from_bytes()` and `int.to_bytes()` functions. - The free floating functions for constructing different types have been diff --git a/stdlib/src/builtin/simd.mojo b/stdlib/src/builtin/simd.mojo index c29e105e5a..97c605656a 100644 --- a/stdlib/src/builtin/simd.mojo +++ b/stdlib/src/builtin/simd.mojo @@ -1961,7 +1961,7 @@ struct SIMD[type: DType, size: Int]( @staticmethod fn from_bytes[ - big_endian: Bool = False + big_endian: Bool = is_big_endian(), ](bytes: InlineArray[Byte, Self.type_len]) -> Scalar[type]: """Converts a byte array to an scalar integer.