--- nono/vm/ethernet.h 2026/04/29 17:05:25 1.1.1.11 +++ nono/vm/ethernet.h 2026/04/29 17:05:29 1.1.1.12 @@ -29,7 +29,7 @@ class EthernetDevice : public IODevice { using inherited = IODevice; protected: - EthernetDevice(int objid_); + explicit EthernetDevice(uint objid_); public: ~EthernetDevice() override; @@ -37,7 +37,7 @@ class EthernetDevice : public IODevice // 設定から MAC アドレスを取得するヘルパー関数。 // (MAC アドレスを保持するデバイスが呼ぶ) - static bool GetConfigMacAddr(int n, macaddr_t *dst, bool accept_rom); + static bool GetConfigMacAddr(uint n, macaddr_t *dst, bool accept_rom); protected: // ホストスレッドからの受信通知