about summary refs log tree commit diff stats
path: root/src/html/catom.nim
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-09-30 21:10:00 +0200
committerbptato <nincsnevem662@gmail.com>2024-09-30 21:10:00 +0200
commit2fc7517d700e6d772d98b47f179e4bb44638919e (patch)
tree6b8a8bef5e95bc6d5268f7dfc4129ed608eccc01 /src/html/catom.nim
parent5ce10f0610cf42e4a579c27e9b17a5f74963b1af (diff)
downloadchawan-2fc7517d700e6d772d98b47f179e4bb44638919e.tar.gz
dom: optimize element size, remove importc hack & dead code
This switches CAtom to uint32; it seems better to use the same size on
all platforms.
Diffstat (limited to 'src/html/catom.nim')
-rw-r--r--src/html/catom.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/html/catom.nim b/src/html/catom.nim
index 3590bc63..93fbafcb 100644
--- a/src/html/catom.nim
+++ b/src/html/catom.nim
@@ -124,7 +124,7 @@ static:
   doAssert (CAtomFactoryStrMapLength and (CAtomFactoryStrMapLength - 1)) == 0
 
 type
-  CAtom* = distinct int
+  CAtom* = distinct uint32
 
   CAtomFactoryInit = object
     obj: CAtomFactoryObj