From 54eac71781f58723bca6d332100e4c6312dfdeb1 Mon Sep 17 00:00:00 2001
From: rswindell <>
Date: Thu, 16 Nov 2017 22:47:36 +0000
Subject: [PATCH] Fix msvc warning.

---
 src/smblib/smballoc.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/smblib/smballoc.c b/src/smblib/smballoc.c
index edfa0404dc..76c9437691 100644
--- a/src/smblib/smballoc.c
+++ b/src/smblib/smballoc.c
@@ -210,7 +210,7 @@ int SMBCALL smb_freemsgdat(smb_t* smb, ulong offset, ulong length, uint16_t refs
 		}
 	}
 	fflush(smb->sda_fp);
-	if(filelength(fileno(smb->sdt_fp)) / SDT_BLOCK_LEN > filelength(fileno(smb->sda_fp)) /  sizeof(uint16_t))
+	if(filelength(fileno(smb->sdt_fp)) / SDT_BLOCK_LEN > (long)(filelength(fileno(smb->sda_fp)) / sizeof(uint16_t)))
 		chsize(fileno(smb->sdt_fp), (filelength(fileno(smb->sda_fp)) / sizeof(uint16_t)) * SDT_BLOCK_LEN);
 	if(da_opened)
 		smb_close_da(smb);
@@ -418,7 +418,7 @@ long SMBCALL smb_allochdr(smb_t* smb, ulong length)
 }
 
 /****************************************************************************/
-/* Allocates space for index, but doesn't search for unused blocks          */
+/* Allocates space for header, but doesn't search for unused blocks          */
 /* Returns negative value on error 											*/
 /****************************************************************************/
 long SMBCALL smb_fallochdr(smb_t* smb, ulong length)
-- 
GitLab