81 |
81 |
82 // Get the CODE tag |
82 // Get the CODE tag |
83 if (not parseLDConfigTag (pars, "CODE", valuestr)) |
83 if (not parseLDConfigTag (pars, "CODE", valuestr)) |
84 continue; |
84 continue; |
85 |
85 |
86 if (not numeric (valuestr)) |
|
87 continue; // not a number |
|
88 |
|
89 // Ensure that the code is within [0 - 511] |
86 // Ensure that the code is within [0 - 511] |
90 bool ok; |
87 bool ok; |
91 code = valuestr.toShort (&ok); |
88 code = valuestr.toShort (&ok); |
92 |
89 |
93 if (not ok || code < 0 || code >= 512) |
90 if (not ok || code < 0 || code >= 512) |