From 503b0aae2052513ff5ed716fcbedecf7bfc0f996 Mon Sep 17 00:00:00 2001 From: Akash Levy Date: Sun, 21 Sep 2025 02:20:13 -0700 Subject: [PATCH] Use long long int for pyosys --- kernel/rtlil.cc | 4 ++-- kernel/rtlil.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/kernel/rtlil.cc b/kernel/rtlil.cc index daa2d4184..b95c8b2d2 100644 --- a/kernel/rtlil.cc +++ b/kernel/rtlil.cc @@ -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) { diff --git a/kernel/rtlil.h b/kernel/rtlil.h index 8cbe488a4..a12bada08 100644 --- a/kernel/rtlil.h +++ b/kernel/rtlil.h @@ -862,8 +862,8 @@ private: public: Const() : flags(RTLIL::CONST_FLAG_NONE), tag(backing_tag::bits), bits_(std::vector()) {} 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 bits) : flags(RTLIL::CONST_FLAG_NONE), tag(backing_tag::bits), bits_(std::move(bits)) {} Const(const std::vector &bits);