Browse Source

Fixed quite a few dozen "comparison is always true due to limited range of data type" warning with gcc on --enable-64bit mode.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@15861 54d463be-8e91-2dee-dedb-b68131a5f0ec
shennetsind 13 years ago
parent
commit
a6a602011d
1 changed files with 5 additions and 0 deletions
  1. 5 0
      src/map/unit.h

+ 5 - 0
src/map/unit.h

@@ -46,8 +46,13 @@ struct unit_data {
 };
 
 struct view_data {
+#ifdef __64BIT__
+	unsigned int class_;
+#endif
 	unsigned short
+#ifndef __64BIT__
 		class_,
+#endif
 		weapon,
 		shield, //Or left-hand weapon.
 		robe,