diff --git a/src/sbbs3/chat.cpp b/src/sbbs3/chat.cpp
index eeb4928bfa1759bd28eaac2f6e95cf2f78d1ae38..41e7286ec5cb7a41780ae24a76a16eb9eb283996 100644
--- a/src/sbbs3/chat.cpp
+++ b/src/sbbs3/chat.cpp
@@ -1248,7 +1248,7 @@ int sbbs_t::getnodetopage(int all, int telegram)
 {
 	char	str[128];
 	char 	tmp[512];
-	uint 	i,j;
+	int 	i,j;
 	node_t	node;
 
 	if(!lastnodemsg)
diff --git a/src/sbbs3/readmail.cpp b/src/sbbs3/readmail.cpp
index 1d71df609bcd8b82a2b601526c1dc7413b2bb560..489e38f82593240b059a6d42c29d329dd4dddc15 100644
--- a/src/sbbs3/readmail.cpp
+++ b/src/sbbs3/readmail.cpp
@@ -47,7 +47,7 @@ void sbbs_t::readmail(uint usernumber, int which, int lm_mode)
 	int		i;
 	uint32_t u,v;
 	int		mismatches=0,act;
-	uint	unum;
+	int		unum;
     int    l,last_mode;
 	uint	last;
 	bool	replied;
diff --git a/src/sbbs3/str.cpp b/src/sbbs3/str.cpp
index 703a81fcfe0f75e375f40094d47466b529f6f9a5..e57be2c1f5fc9411f62e6f793ed4c0795ff31702 100644
--- a/src/sbbs3/str.cpp
+++ b/src/sbbs3/str.cpp
@@ -33,7 +33,7 @@ void sbbs_t::userlist(int mode)
 	char *	line[2500];
 	user_t	user;
 
-	if(lastuser(&cfg)<=(sizeof(line)/sizeof(line[0])))
+	if(lastuser(&cfg)<=(int)(sizeof(line)/sizeof(line[0])))
 		sort=yesno(text[SortAlphaQ]);
 	if(sort) {
 		bputs(text[CheckingSlots]); 
diff --git a/src/sbbs3/un_qwk.cpp b/src/sbbs3/un_qwk.cpp
index 197cf6aac37ca5d6b186c22b8ead7f9a45fb8c98..ac359740411736f87c71ff14d622bcc46876bc94 100644
--- a/src/sbbs3/un_qwk.cpp
+++ b/src/sbbs3/un_qwk.cpp
@@ -45,7 +45,7 @@ bool sbbs_t::unpack_qwk(char *packet,uint hubnum)
 	uchar	block[QWK_BLOCK_LEN];
 	int 	k,file;
 	uint	i,j,n,lastsub=INVALID_SUB;
-	uint	usernum;
+	int		usernum;
 	uint	blocks;
 	long	l,size,misc;
 	ulong	t;
diff --git a/src/sbbs3/useredit.cpp b/src/sbbs3/useredit.cpp
index e392573015e8e8f4718f88c6ec3c60f67124624f..5bbbd9dbd1f3aedc9c9057c57698f8018159acc7 100644
--- a/src/sbbs3/useredit.cpp
+++ b/src/sbbs3/useredit.cpp
@@ -41,10 +41,10 @@ void sbbs_t::useredit(int usernumber)
 	char 	tmp[512];
 	char	search[256]={""},artxt[128]={""};
 	uchar	*ar=NULL;
-	uint	i,j,k;
+	int		i,j,k;
 	float	f;
-	long	l;
-	long	kmode = K_LINE|K_EDIT|K_AUTODEL|K_TRIM;
+	int		l;
+	int		kmode = K_LINE|K_EDIT|K_AUTODEL|K_TRIM;
 	int64_t adj;
 	user_t	user;
 	struct	tm tm;