fixes #1063
This commit is contained in:
parent
1b97fcd448
commit
abb7010820
3 changed files with 35 additions and 2 deletions
23
tests/vm/tarrayboundeval.nim
Normal file
23
tests/vm/tarrayboundeval.nim
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
discard """
|
||||
output: '''7
|
||||
8 8'''
|
||||
"""
|
||||
|
||||
#bug 1063
|
||||
|
||||
const
|
||||
KeyMax = 227
|
||||
myconst = int((KeyMax + 31) / 32)
|
||||
|
||||
type
|
||||
FU = array[int((KeyMax + 31) / 32), cuint]
|
||||
|
||||
echo FU.high
|
||||
|
||||
type
|
||||
PKeyboard* = ptr object
|
||||
TKeyboardState* = object
|
||||
display*: pointer
|
||||
internal: array[int((KeyMax + 31)/32), cuint]
|
||||
|
||||
echo myconst, " ", int((KeyMax + 31) / 32)
|
||||
Loading…
Add table
Add a link
Reference in a new issue