Skip to content

Commit

Permalink
lots of bugs in nim
Browse files Browse the repository at this point in the history
  • Loading branch information
arnetheduck committed Sep 2, 2024
1 parent a21b5e5 commit 0c55600
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion stew/arraybuf.nim
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
import ./evalonce

type ArrayBuf*[N: static int, T = byte] = object
type ArrayBuf*[N: static int, T] = object
## An fixed-capacity, allocation-free buffer with a seq-like API - suitable
## for keeping small amounts of data since the full capacity is reserved on
## instantiation (using an `array`).
#
# `N` must be "simple enough" or one of these will trigger
# TODO https://github.com/nim-lang/Nim/issues/24043
# TODO https://github.com/nim-lang/Nim/issues/24044
# TODO https://github.com/nim-lang/Nim/issues/24045
buf*: array[N, T]

when sizeof(int) > sizeof(uint8):
Expand Down

0 comments on commit 0c55600

Please sign in to comment.