summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--common/JackNetTool.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/JackNetTool.cpp b/common/JackNetTool.cpp
index 077b8cb2..b34711c3 100644
--- a/common/JackNetTool.cpp
+++ b/common/JackNetTool.cpp
@@ -778,8 +778,8 @@ namespace Jack
memset(fCompressedBuffer[port_index], 0, fCompressedMaxSizeByte * sizeof(char));
}
- int res1 = (fNPorts * fCompressedMaxSizeByte + CDO) % PACKET_AVAILABLE_SIZE(params);
- int res2 = (fNPorts * fCompressedMaxSizeByte + CDO) / PACKET_AVAILABLE_SIZE(params);
+ int res1 = (fNPorts * (fCompressedMaxSizeByte + CDO)) % PACKET_AVAILABLE_SIZE(params);
+ int res2 = (fNPorts * (fCompressedMaxSizeByte + CDO)) / PACKET_AVAILABLE_SIZE(params);
fNumPackets = (res1) ? (res2 + 1) : res2;