mirror of
https://github.com/YosysHQ/nextpnr.git
synced 2026-04-25 20:01:22 +00:00
rust: fix build error
This commit is contained in:
@@ -217,7 +217,7 @@ PortRef *npnr_netinfo_driver(NetInfo *net)
|
||||
uint32_t npnr_netinfo_users_leak(const NetInfo *net, const PortRef ***users)
|
||||
{
|
||||
auto size = net->users.entries();
|
||||
*users = new PortRef *[size];
|
||||
*users = new const PortRef *[size];
|
||||
auto idx = 0;
|
||||
for (auto &item : net->users) {
|
||||
(*users)[idx] = &item;
|
||||
|
||||
Reference in New Issue
Block a user