[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Question about the condition in `luaH_getint` function
- From: Mouse <mouse@...>
- Date: Tue, 18 Apr 2023 18:42:27 -0400 (EDT)
>> It does, though, assume t->alimit is a power of two. Is that
>> guaranteed?
> It does not assume that t->alimit is a power of two. That would be
> wrong. It only assumes that nextPowerOfTwo(t->alimit) is the real
> array length.
Hm.
You're right. I spoke too fast. Thank you; I will have to remember
that little trick.
/~\ The ASCII Mouse
\ / Ribbon Campaign
X Against HTML mouse@rodents-montreal.org
/ \ Email! 7D C8 61 52 5D E7 2D 39 4E F1 31 3E E8 B3 27 4B