src/ldConfig.cc

changeset 800
a1d9b7fff8f7
parent 795
195fa1fff9c3
child 806
4240f47aa2d4
equal deleted inserted replaced
799:c18c8846f6a7 800:a1d9b7fff8f7
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)

mercurial