From 369a9fcbf87377d0089fc46a07dae0ea918a6b67 Mon Sep 17 00:00:00 2001 From: treeform Date: Mon, 25 May 2026 11:12:50 -0700 Subject: [PATCH] Require little-endian native targets --- src/flatty/binny.nim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/flatty/binny.nim b/src/flatty/binny.nim index e5329cf..fe24e46 100644 --- a/src/flatty/binny.nim +++ b/src/flatty/binny.nim @@ -1,3 +1,6 @@ +when cpuEndian != littleEndian: + {.error: "flatty only supports little-endian native targets".} + # Like StringStream but without the Stream and side effects. type Buffer = string | seq[uint8]