aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Michael Smith <mikesmiffy128@gmail.com> 2025-04-16 02:16:57 +0100
committerGravatar Michael Smith <mikesmiffy128@gmail.com> 2025-04-16 02:21:43 +0100
commit7621b76c7081049b6b93ee679cbd786dbb7d49a4 (patch)
treef887a77d40a5681e06d1e4dad8a4b016c106effc /src
parent32682f01faf0d2e596376f3e770d35c467059c16 (diff)
downloadsst-7621b76c7081049b6b93ee679cbd786dbb7d49a4.tar.gz
sst-7621b76c7081049b6b93ee679cbd786dbb7d49a4.zip
Fix minor idiocy in msg.c
I had at one point tried to macrofy the repetitive functions. After being talked down from that madness, I LSP-expanded all the macros out and went through rewriting the crazy expressions into constants. Except those two for some reason, because I'm blind I guess. Thanks bill for pointing this out.
Diffstat (limited to 'src')
-rw-r--r--src/chunklets/msg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/chunklets/msg.c b/src/chunklets/msg.c
index f49581b..a4f158b 100644
--- a/src/chunklets/msg.c
+++ b/src/chunklets/msg.c
@@ -258,12 +258,12 @@ int msg_rputssz16(unsigned char *end, int val) {
int msg_putssz(unsigned char *out, unsigned int val) {
if (val <= 65535) return msg_putssz16(out, val);
doput32(out, 0xDB, val);
- return (32) / 8 + 1;
+ return 5;
}
int msg_rputssz(unsigned char *end, unsigned int val) {
if (val <= 65535) return msg_rputssz16(end, val);
doput32(end - (32) / 8 - 1, 0xDB, val);
- return (32) / 8 + 1;
+ return 5;
}
int msg_putbsz16(unsigned char *out, int val) {