From 5b67894b325a32715c3d26374fa3d107f0ba8b40 Mon Sep 17 00:00:00 2001 From: "Tristan B. Velloza Kildaire" Date: Mon, 25 Sep 2023 20:00:54 +0200 Subject: [PATCH] CoapClient - Made the `rollingMid` a `ushort` and fixed the `newMid()` method to return that --- source/doap/client/client.d | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/doap/client/client.d b/source/doap/client/client.d index a83f62f..04f9e0b 100644 --- a/source/doap/client/client.d +++ b/source/doap/client/client.d @@ -48,7 +48,7 @@ public class CoapClient /** * Rolling Message ID */ - private ulong rollingMid; + private ushort rollingMid; private Mutex rollingLock; /** @@ -74,9 +74,9 @@ public class CoapClient init(); } - package ulong newMid() + package ushort newMid() { - ulong newValue; + ushort newValue; // Lock rolling counter this.rollingLock.lock();