Rewrite parenthesized uses of uint to standard unsigned

This commit is contained in:
Kp 2016-07-14 01:59:02 +00:00
parent 0b6af7fcbe
commit 613a7ecbbb
5 changed files with 6 additions and 6 deletions

View file

@ -94,7 +94,7 @@ extern void newdemo_record_hud_message(const char *s);
extern void newdemo_record_palette_effect(short r, short g, short b);
extern void newdemo_record_player_energy(int);
extern void newdemo_record_player_shields(int);
extern void newdemo_record_player_flags(uint);
extern void newdemo_record_player_flags(unsigned);
extern void newdemo_record_player_weapon(int, int);
void newdemo_record_effect_blowup(segnum_t, int, const vms_vector &);
extern void newdemo_record_homing_distance(fix);

View file

@ -22,7 +22,7 @@
#include <fcntl.h>
#include <dirent.h>
#define SWAPINT(x) (((x)<<24) | (((uint)(x)) >> 24) | (((x) &0x0000ff00) << 8) | (((x) & 0x00ff0000) >> 8))
#define SWAPINT(x) (((x)<<24) | (((unsigned)(x)) >> 24) | (((x) &0x0000ff00) << 8) | (((x) & 0x00ff0000) >> 8))
int
main(int argc, char *argv[])

View file

@ -21,7 +21,7 @@
#include <sys/stat.h>
#include <fcntl.h>
#define SWAPINT(x) (((x)<<24) | (((uint)(x)) >> 24) | (((x) &0x0000ff00) << 8) | (((x) & 0x00ff0000) >> 8))
#define SWAPINT(x) (((x)<<24) | (((unsigned)(x)) >> 24) | (((x) &0x0000ff00) << 8) | (((x) & 0x00ff0000) >> 8))
int
main(int argc, char *argv[])

View file

@ -24,7 +24,7 @@
#define MAX_FILES 256
#define SWAPINT(x) (((x)<<24) | (((uint)(x)) >> 24) | (((x) &0x0000ff00) << 8) | (((x) & 0x00ff0000) >> 8))
#define SWAPINT(x) (((x)<<24) | (((unsigned)(x)) >> 24) | (((x) &0x0000ff00) << 8) | (((x) & 0x00ff0000) >> 8))
int
main(int argc, char *argv[])

View file

@ -914,7 +914,7 @@ int state_save_all_sub(const char *filename, const char *desc)
// Save Coop state_game_id and this Player's callsign. Oh the redundancy... we have this one later on but Coop games want to read this before loading a state so for easy access save this here, too
if (Game_mode & GM_MULTI_COOP)
{
PHYSFS_write(fp, &state_game_id, sizeof(uint), 1);
PHYSFS_write(fp, &state_game_id, sizeof(unsigned), 1);
PHYSFS_write(fp, &get_local_player().callsign, sizeof(char)*CALLSIGN_LEN+1, 1);
}
@ -1137,7 +1137,7 @@ int state_save_all_sub(const char *filename, const char *desc)
else
PHYSFS_write(fp, &Automap_visited[0], sizeof(ubyte), MAX_SEGMENTS_ORIGINAL);
PHYSFS_write(fp, &state_game_id, sizeof(uint), 1);
PHYSFS_write(fp, &state_game_id, sizeof(unsigned), 1);
{
const int i = 0;
PHYSFS_write(fp, &cheats.rapidfire, sizeof(int), 1);