--- nono/vm/ethernet.cpp 2026/04/29 17:05:21 1.1.1.8 +++ nono/vm/ethernet.cpp 2026/04/29 17:05:29 1.1.1.9 @@ -14,7 +14,7 @@ #include "scheduler.h" // コンストラクタ -EthernetDevice::EthernetDevice(int objid_) +EthernetDevice::EthernetDevice(uint objid_) : inherited(objid_) { } @@ -63,9 +63,9 @@ EthernetDevice::HostRxCallback() // MAC アドレスが指定されているか自動生成したかで取得できれば mac に格納して // true を返す。それ以外の場合は、エラーメッセージを表示して false を返す。 /*static*/ bool -EthernetDevice::GetConfigMacAddr(int n, macaddr_t *mac, bool accept_rom) +EthernetDevice::GetConfigMacAddr(uint n, macaddr_t *mac, bool accept_rom) { - std::string keyname = string_format("ethernet%d-macaddr", n); + std::string keyname = string_format("ethernet%u-macaddr", n); const ConfigItem& item = gConfig->Find(keyname); const std::string& val = item.AsString();