shithub: choc

Download patch

ref: e6e5868035eef3fe2db95b80f15a6fce6e5d5fe5
parent: 7c2cc3e01f5c5384427773fc824fdd5eee1c0b23
author: Simon Howard <[email protected]>
date: Thu Oct 18 19:54:11 EDT 2007

Shut up signed / unsigned comparison warnings.

Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 978

--- a/setup/joystick.c
+++ b/setup/joystick.c
@@ -317,7 +317,7 @@
 void JoyButtonSetCallback(TXT_UNCAST_ARG(widget), TXT_UNCAST_ARG(variable))
 {
     TXT_CAST_ARG(int, variable);
-    int i;
+    unsigned int i;
 
     // Only allow a button to be bound to one action at a time.  If 
     // we assign a key that another action is using, set that other action
--- a/setup/multiplayer.c
+++ b/setup/multiplayer.c
@@ -111,7 +111,7 @@
 
 static iwad_t *GetIWADForDescription(char *description)
 {
-    int i;
+    unsigned int i;
 
     for (i=0; i<arrlen(iwads); ++i)
     {
@@ -396,7 +396,7 @@
     txt_widget_t *result;
     int installed_iwads;
     int num_iwads;
-    int i;
+    unsigned int i;
 
     // Find out what WADs are installed
     
--- a/src/deh_main.c
+++ b/src/deh_main.c
@@ -79,7 +79,7 @@
 void DEH_Checksum(md5_digest_t digest)
 {
     md5_context_t md5_context;
-    int i;
+    unsigned int i;
 
     MD5_Init(&md5_context);
 
@@ -98,7 +98,7 @@
 
 static void InitialiseSections(void)
 {
-    int i;
+    unsigned int i;
 
     for (i=0; i<arrlen(section_types); ++i)
     {
@@ -113,7 +113,7 @@
 
 static deh_section_t *GetSectionByName(char *name)
 {
-    int i;
+    unsigned int i;
 
     for (i=0; i<arrlen(section_types); ++i)
     {
--- a/src/i_pcsound.c
+++ b/src/i_pcsound.c
@@ -62,7 +62,7 @@
 
 static void PCSCallbackFunc(int *duration, int *freq)
 {
-    int tone;
+    unsigned int tone;
 
     *duration = 1000 / 140;