From a356cdf2b671e94f6a2005cf0ea0ce8249b90035 Mon Sep 17 00:00:00 2001 From: bruce Date: Fri, 8 Nov 2024 16:33:17 +0800 Subject: [PATCH] fix: fix incorrect conversion between integer types fix incorrect conversion between integer types Signed-off-by: bruce --- internal/driver/pullpointmanager.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/driver/pullpointmanager.go b/internal/driver/pullpointmanager.go index 7b3add01..e1377ecc 100644 --- a/internal/driver/pullpointmanager.go +++ b/internal/driver/pullpointmanager.go @@ -65,7 +65,7 @@ func (manager *PullPointManager) NewSubscriber(onvifClient *OnvifClient, resourc subscriptionRequest: request, pullMessageRequestBody: event.PullMessages{ Timeout: xsd.Duration(*request.MessageTimeout), - MessageLimit: xsd.Int(*request.MessageLimit), + MessageLimit: xsd.Int(int32(*request.MessageLimit)), }, Stopped: make(chan bool), }