Skip to content

Commit

Permalink
use strtoul instead of atoi
Browse files Browse the repository at this point in the history
  • Loading branch information
JenusL committed Nov 14, 2021
1 parent d593090 commit 9d64495
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/sitoa/loader/Options.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -843,7 +843,7 @@ void LoadOptionsParameters(AtNode* in_optionsNode, const Property &in_arnoldOpti
AtArray* selectedDevices = AiArrayAllocate(1, (uint8_t)numManualDevicesSelected, AI_TYPE_UINT);
for (LONG i=0; i<numManualDevicesSelected; i++)
{
AiArraySetUInt(selectedDevices, i, atoi(manualDevices[i].GetAsciiString()));
AiArraySetUInt(selectedDevices, i, strtoul(manualDevices[i].GetAsciiString(), NULL, 10));
if (i+1 == numManualDevicesSelected)
autoDeviceSelect = false;
}
Expand Down

0 comments on commit 9d64495

Please sign in to comment.