Use long long int for pyosys

This commit is contained in:
Akash Levy 2025-09-21 02:20:13 -07:00
parent 72de51a1b0
commit 503b0aae20
2 changed files with 4 additions and 4 deletions

View File

@ -273,7 +273,7 @@ RTLIL::Const::Const(const std::string &str)
tag = backing_tag::string;
}
RTLIL::Const::Const(long long val) // default width 32
RTLIL::Const::Const(long long int val) // default width 32
{
flags = RTLIL::CONST_FLAG_NONE;
char bytes[] = {
@ -283,7 +283,7 @@ RTLIL::Const::Const(long long val) // default width 32
tag = backing_tag::string;
}
RTLIL::Const::Const(long long val, int width)
RTLIL::Const::Const(long long int val, int width)
{
flags = RTLIL::CONST_FLAG_NONE;
if ((width & 7) == 0) {

View File

@ -862,8 +862,8 @@ private:
public:
Const() : flags(RTLIL::CONST_FLAG_NONE), tag(backing_tag::bits), bits_(std::vector<RTLIL::State>()) {}
Const(const std::string &str);
Const(long long val); // default width is 32
Const(long long val, int width);
Const(long long int val); // default width is 32
Const(long long int val, int width);
Const(RTLIL::State bit, int width = 1);
Const(std::vector<RTLIL::State> bits) : flags(RTLIL::CONST_FLAG_NONE), tag(backing_tag::bits), bits_(std::move(bits)) {}
Const(const std::vector<bool> &bits);