You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have one constants module created in src/constants/constants.v.
I am using one of the width constants to create a 2d f64 array, but gives me an error.
It is giving me an error that width is negative or zero but it isn't.
Possible Solution
No response
Additional Information/Context
No response
V version
0.4.3
Environment details (OS name and version, etc.)
V full version: V 0.4.3 7fc3159.053d2be
OS: linux, Ubuntu 22.04.3 LTS
Processor: 8 cpus, 64bit, little endian, Intel(R) Core(TM) i5-1035G1 CPU @ 1.00GHz
visrut7
changed the title
importing constants from another module and using inside arrar
importing constants from another module and using inside array results into zero or negative
Dec 30, 2023
Describe the bug
I have one
constants
module created insrc/constants/constants.v
.I am using one of the
width
constants to create a 2df64
array, but gives me an error.Reproduction Steps
This is my directory structure.
Expected Behavior
It should compile the code without any errors.
Current Behavior
It is giving me an error that width is
negative
orzero
but it isn't.Possible Solution
No response
Additional Information/Context
No response
V version
0.4.3
Environment details (OS name and version, etc.)
V full version: V 0.4.3 7fc3159.053d2be
OS: linux, Ubuntu 22.04.3 LTS
Processor: 8 cpus, 64bit, little endian, Intel(R) Core(TM) i5-1035G1 CPU @ 1.00GHz
Git version: git version 2.34.1
Git vroot status: 053d2be
.git/config present: true
CC version: cc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
thirdparty/tcc status: thirdparty-linux-amd64 12f392c3
Note
You can use the 👍 reaction to increase the issue's priority for developers.
Please note that only the 👍 reaction to the issue itself counts as a vote.
Other reactions and those to comments will not be taken into account.
The text was updated successfully, but these errors were encountered: