Skip to content

Commit 625e784

Browse files
committed
Fix compiler warnings
1 parent 61bcfde commit 625e784

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/njs/src/njsConnection.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -819,11 +819,12 @@ void Connection::GetInBindParams (Handle<Value> v8val, Bind* bind,
819819
bind->type = dpi::DpiRaw;
820820
if(type == BIND_INOUT)
821821
{
822-
*(bind->len) = bufLen;
822+
*(bind->len) = (DPI_BUFLEN_TYPE) bufLen;
823823
}
824824
else // IN
825825
{
826-
bind->maxSize = *(bind->len) = bufLen;
826+
bind->maxSize = (DPI_SZ_TYPE ) bufLen;
827+
*(bind->len) = (DPI_BUFLEN_TYPE) bufLen;
827828
}
828829
DPI_SZ_TYPE size = (bind->maxSize >= *(bind->len) ) ?
829830
bind->maxSize : *(bind->len);

0 commit comments

Comments
 (0)