From 5748fd0bc35dbc74b2e4b37806a531db086fc3bf Mon Sep 17 00:00:00 2001 From: Manuel Saelices Date: Tue, 17 Dec 2024 12:26:09 +0100 Subject: [PATCH] Try to not allocating memory by using InlineArray instead of List Signed-off-by: Manuel Saelices --- stdlib/src/builtin/simd.mojo | 3 --- 1 file changed, 3 deletions(-) diff --git a/stdlib/src/builtin/simd.mojo b/stdlib/src/builtin/simd.mojo index 39e5d452c9..cb20e0485c 100644 --- a/stdlib/src/builtin/simd.mojo +++ b/stdlib/src/builtin/simd.mojo @@ -1907,9 +1907,6 @@ struct SIMD[type: DType, size: Int]( Returns: The integer value. """ - if type.sizeof() != len(bytes): - raise Error("Byte array size does not match the integer size.") - var ptr: UnsafePointer[Scalar[type]] = bytes.unsafe_ptr().bitcast[ Scalar[type] ]()