Skip to content

Commit eccd25c

Browse files
committed
Eliminate compiler warnings regarding data loss
1 parent 178305c commit eccd25c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/njsConnection.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -843,8 +843,8 @@ static bool njsConnection_executeManyPostAsync(njsBaton *baton, napi_env env,
843843

844844
// get total number of rows affected
845845
if (!baton->stmtInfo.isPLSQL) {
846-
NJS_CHECK_NAPI(env, napi_create_uint32(env, baton->rowsAffected,
847-
&temp))
846+
NJS_CHECK_NAPI(env, napi_create_uint32(env,
847+
(uint32_t) baton->rowsAffected, &temp))
848848
NJS_CHECK_NAPI(env, napi_set_named_property(env, result,
849849
"rowsAffected", temp))
850850
}
@@ -1592,8 +1592,8 @@ static bool njsConnection_getRowCounts(njsBaton *baton, napi_env env,
15921592
NJS_CHECK_NAPI(env, napi_create_array_with_length(env, baton->numRowCounts,
15931593
rowCounts))
15941594
for (i = 0; i < baton->numRowCounts; i++) {
1595-
NJS_CHECK_NAPI(env, napi_create_uint32(env, baton->rowCounts[i],
1596-
&temp))
1595+
NJS_CHECK_NAPI(env, napi_create_uint32(env,
1596+
(uint32_t) baton->rowCounts[i], &temp))
15971597
NJS_CHECK_NAPI(env, napi_set_element(env, *rowCounts, i, temp))
15981598
}
15991599

0 commit comments

Comments
 (0)