mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-12-24 18:08:44 +00:00
Changed: Replace sscanf by fromString
This commit is contained in:
parent
f53ecd3687
commit
9b8272b2bd
1 changed files with 2 additions and 2 deletions
|
@ -419,13 +419,13 @@ int main(int argc, char* argv[])
|
||||||
|
|
||||||
float weldThreshold, middleEdgeWeldThreshold;
|
float weldThreshold, middleEdgeWeldThreshold;
|
||||||
|
|
||||||
if (::sscanf(argv[2], "%f", &weldThreshold) != 1)
|
if (!fromString(argv[2], weldThreshold))
|
||||||
{
|
{
|
||||||
nlinfo("invalid weldThreshold");
|
nlinfo("invalid weldThreshold");
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (::sscanf(argv[3], "%f", &middleEdgeWeldThreshold) != 1)
|
if (!fromString(argv[3], middleEdgeWeldThreshold))
|
||||||
{
|
{
|
||||||
nlinfo("invalid middleEdgeWeldThreshold");
|
nlinfo("invalid middleEdgeWeldThreshold");
|
||||||
return -1;
|
return -1;
|
||||||
|
|
Loading…
Reference in a new issue