reading seems to work with all atomic types + records...

This commit is contained in:
Bernhard Amann 2011-11-02 14:29:58 -07:00
parent 638976791e
commit b5a77aa77b
2 changed files with 21 additions and 6 deletions

View file

@ -216,7 +216,7 @@ bool InputReaderAscii::DoUpdate() {
case TYPE_SUBNET: {
int pos = s.find("/");
string width = s.substr(pos);
string width = s.substr(pos+1);
val->val.subnet_val.width = atoi(width.c_str());
string addr = s.substr(0, pos);
s = addr;