Skip to content

Commit f0063f0

Browse files
committed
Use static_cast instead
1 parent ead3e76 commit f0063f0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

greengrass_ipc/source/platform/WindowsConnectionConfig.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ namespace Aws
1717
getenv_s(
1818
&ipcSocketSize,
1919
&ipcSocket[0],
20-
reinterpret_cast<rsize_t>(ipcSocketSize),
20+
static_cast<rsize_t>(ipcSocketSize),
2121
"AWS_GG_NUCLEUS_DOMAIN_SOCKET_FILEPATH_FOR_COMPONENT");
2222
if (ipcSocketSize > 0)
2323
{
@@ -27,7 +27,7 @@ namespace Aws
2727
size_t authTokenSize = 0;
2828
getenv_s(&authTokenSize, NULL, 0, "SVCUID");
2929
Crt::Vector<char> authToken(authTokenSize);
30-
getenv_s(&authTokenSize, &authToken[0], reinterpret_cast<rsize_t>(authTokenSize), "SVCUID");
30+
getenv_s(&authTokenSize, &authToken[0], static_cast<rsize_t>(authTokenSize), "SVCUID");
3131
if (authTokenSize > 0)
3232
{
3333
/* Encode authToken as JSON. */

0 commit comments

Comments
 (0)