Skip to content
Snippets Groups Projects
Commit 7bb0dad3 authored by deuce's avatar deuce
Browse files

No need to ensure ushorts are >= 0

parent e1abf69a
No related branches found
No related tags found
No related merge requests found
...@@ -1213,7 +1213,7 @@ void command(char* instr, faddr_t addr, char* to) ...@@ -1213,7 +1213,7 @@ void command(char* instr, faddr_t addr, char* to)
fclose(tmpf); fclose(tmpf);
return; return;
} }
if(cfg.nodecfg[node].arctype >= 0 && cfg.nodecfg[node].arctype < cfg.arcdefs) if(cfg.nodecfg[node].arctype < cfg.arcdefs)
buf = cfg.arcdef[cfg.nodecfg[node].arctype].name; buf = cfg.arcdef[cfg.nodecfg[node].arctype].name;
else else
buf = "NONE"; buf = "NONE";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment