Browse Source

fixed VS build error

pull/2011/head
orignal 10 months ago
parent
commit
67c4d4bcaa
  1. 2
      libi2pd/NTCP2.cpp

2
libi2pd/NTCP2.cpp

@ -1170,7 +1170,7 @@ namespace transport @@ -1170,7 +1170,7 @@ namespace transport
size_t paddingSize = (msgLen*NTCP2_MAX_PADDING_RATIO)/100;
if (msgLen + paddingSize + 3 > NTCP2_UNENCRYPTED_FRAME_MAX_SIZE)
{
ssize_t l = NTCP2_UNENCRYPTED_FRAME_MAX_SIZE - msgLen -3;
int l = (int)NTCP2_UNENCRYPTED_FRAME_MAX_SIZE - msgLen -3;
if (l <= 0) return 0;
paddingSize = l;
}

Loading…
Cancel
Save