From 4780c1c4c133cc78a63a3a0dba43586add25da11 Mon Sep 17 00:00:00 2001
From: Nic Barker <contact+github@nicbarker.com>
Date: Tue, 25 Mar 2025 10:02:22 +1300
Subject: [PATCH] Remove debug short circuit

---
 clay.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/clay.h b/clay.h
index 3124b8e..3278505 100644
--- a/clay.h
+++ b/clay.h
@@ -98,7 +98,7 @@
 // Note: If an error led you here, it's because CLAY_STRING can only be used with string literals, i.e. CLAY_STRING("SomeString") and not CLAY_STRING(yourString)
 #define CLAY_STRING(string) (CLAY__INIT(Clay_String) { .isStaticallyAllocated = true, .length = CLAY__STRING_LENGTH(CLAY__ENSURE_STRING_LITERAL(string)), .chars = (string) })
 
-#define CLAY_STRING_CONST(string) { .length = CLAY__STRING_LENGTH(CLAY__ENSURE_STRING_LITERAL(string)), .chars = (string) }
+#define CLAY_STRING_CONST(string) { .isStaticallyAllocated = true, .length = CLAY__STRING_LENGTH(CLAY__ENSURE_STRING_LITERAL(string)), .chars = (string) }
 
 static uint8_t CLAY__ELEMENT_DEFINITION_LATCH;
 
@@ -1470,7 +1470,7 @@ uint64_t Clay__HashData(const uint8_t* data, size_t length) {
 
 uint32_t Clay__HashStringContentsWithConfig(Clay_String *text, Clay_TextElementConfig *config) {
     uint32_t hash = 0;
-    if (false) {
+    if (text->isStaticallyAllocated) {
         hash += (uintptr_t)text->chars;
         hash += (hash << 10);
         hash ^= (hash >> 6);