瀏覽代碼

fix compiler warnings

David Rose 17 年之前
父節點
當前提交
26d832b486

+ 3 - 3
panda/src/linmath/lmatrix3_src.I

@@ -62,7 +62,7 @@ __setitem__(int i, FLOATTYPE v) {
 //       Access: Public, Static
 //  Description: Returns 3: the number of columns of a LMatrix3.
 ////////////////////////////////////////////////////////////////////
-INLINE_LINMATH size_t FLOATNAME(LMatrix3)::Row::
+INLINE_LINMATH int FLOATNAME(LMatrix3)::Row::
 size() {
   return 3;
 }
@@ -92,7 +92,7 @@ operator [](int i) const {
 //       Access: Public, Static
 //  Description: Returns 3: the number of columns of a LMatrix3.
 ////////////////////////////////////////////////////////////////////
-INLINE_LINMATH size_t FLOATNAME(LMatrix3)::CRow::
+INLINE_LINMATH int FLOATNAME(LMatrix3)::CRow::
 size() {
   return 3;
 }
@@ -347,7 +347,7 @@ operator [](int i) {
 //       Access: Public, Static
 //  Description: Returns 3: the number of rows of a LMatrix3.
 ////////////////////////////////////////////////////////////////////
-INLINE_LINMATH size_t FLOATNAME(LMatrix3)::
+INLINE_LINMATH int FLOATNAME(LMatrix3)::
 size() {
   return 3;
 }

+ 3 - 3
panda/src/linmath/lmatrix3_src.h

@@ -38,7 +38,7 @@ PUBLISHED:
 #ifdef HAVE_PYTHON
     INLINE_LINMATH void __setitem__(int i, FLOATTYPE v);
 #endif
-    INLINE_LINMATH static size_t size();
+    INLINE_LINMATH static int size();
   private:
     FLOATTYPE *_row;
     friend class FLOATNAME(LMatrix3);
@@ -48,7 +48,7 @@ PUBLISHED:
     INLINE_LINMATH CRow(const FLOATTYPE *row);
   PUBLISHED:
     INLINE_LINMATH FLOATTYPE operator [](int i) const;
-    INLINE_LINMATH static size_t size();
+    INLINE_LINMATH static int size();
   private:
     const FLOATTYPE *_row;
     friend class FLOATNAME(LMatrix3);
@@ -96,7 +96,7 @@ PUBLISHED:
 
   INLINE_LINMATH CRow operator [](int i) const;
   INLINE_LINMATH Row operator [](int i);
-  INLINE_LINMATH static size_t size();
+  INLINE_LINMATH static int size();
 
   INLINE_LINMATH bool is_nan() const;
 

+ 3 - 3
panda/src/linmath/lmatrix4_src.I

@@ -62,7 +62,7 @@ __setitem__(int i, FLOATTYPE v) {
 //       Access: Public, Static
 //  Description: Returns 4: the number of columns of a LMatrix4.
 ////////////////////////////////////////////////////////////////////
-INLINE_LINMATH size_t FLOATNAME(LMatrix4)::Row::
+INLINE_LINMATH int FLOATNAME(LMatrix4)::Row::
 size() {
   return 4;
 }
@@ -92,7 +92,7 @@ operator [](int i) const {
 //       Access: Public, Static
 //  Description: Returns 4: the number of columns of a LMatrix4.
 ////////////////////////////////////////////////////////////////////
-INLINE_LINMATH size_t FLOATNAME(LMatrix4)::CRow::
+INLINE_LINMATH int FLOATNAME(LMatrix4)::CRow::
 size() {
   return 4;
 }
@@ -525,7 +525,7 @@ operator [](int i) {
 //       Access: Public, Static
 //  Description: Returns 4: the number of rows of a LMatrix4.
 ////////////////////////////////////////////////////////////////////
-INLINE_LINMATH size_t FLOATNAME(LMatrix4)::
+INLINE_LINMATH int FLOATNAME(LMatrix4)::
 size() {
   return 4;
 }

+ 3 - 3
panda/src/linmath/lmatrix4_src.h

@@ -33,7 +33,7 @@ PUBLISHED:
 #ifdef HAVE_PYTHON
     INLINE_LINMATH void __setitem__(int i, FLOATTYPE v);
 #endif
-    INLINE_LINMATH static size_t size();
+    INLINE_LINMATH static int size();
   private:
     FLOATTYPE *_row;
     friend class FLOATNAME(LMatrix4);
@@ -43,7 +43,7 @@ PUBLISHED:
     INLINE_LINMATH CRow(const FLOATTYPE *row);
   PUBLISHED:
     INLINE_LINMATH FLOATTYPE operator [](int i) const;
-    INLINE_LINMATH static size_t size();
+    INLINE_LINMATH static int size();
   private:
     const FLOATTYPE *_row;
     friend class FLOATNAME(LMatrix4);
@@ -99,7 +99,7 @@ PUBLISHED:
 
   INLINE_LINMATH CRow operator [](int i) const;
   INLINE_LINMATH Row operator [](int i);
-  INLINE_LINMATH static size_t size();
+  INLINE_LINMATH static int size();
 
   INLINE_LINMATH bool is_nan() const;
 

+ 1 - 1
panda/src/linmath/lvecBase2_src.I

@@ -162,7 +162,7 @@ __setitem__(int i, FLOATTYPE v) {
 //       Access: Public, Static
 //  Description: Returns 2: the number of components of a LVecBase2.
 ////////////////////////////////////////////////////////////////////
-INLINE_LINMATH size_t FLOATNAME(LVecBase2)::
+INLINE_LINMATH int FLOATNAME(LVecBase2)::
 size() {
   return 2;
 }

+ 1 - 1
panda/src/linmath/lvecBase2_src.h

@@ -44,7 +44,7 @@ PUBLISHED:
 #ifdef HAVE_PYTHON
   INLINE_LINMATH void __setitem__(int i, FLOATTYPE v);
 #endif
-  INLINE_LINMATH static size_t size();
+  INLINE_LINMATH static int size();
 
   INLINE_LINMATH bool is_nan() const;
 

+ 1 - 1
panda/src/linmath/lvecBase3_src.I

@@ -174,7 +174,7 @@ __setitem__(int i, FLOATTYPE v) {
 //       Access: Public, Static
 //  Description: Returns 3: the number of components of a LVecBase3.
 ////////////////////////////////////////////////////////////////////
-INLINE_LINMATH size_t FLOATNAME(LVecBase3)::
+INLINE_LINMATH int FLOATNAME(LVecBase3)::
 size() {
   return 3;
 }

+ 1 - 1
panda/src/linmath/lvecBase3_src.h

@@ -42,7 +42,7 @@ PUBLISHED:
 #ifdef HAVE_PYTHON
   INLINE_LINMATH void __setitem__(int i, FLOATTYPE v);
 #endif
-  INLINE_LINMATH static size_t size();
+  INLINE_LINMATH static int size();
 
   INLINE_LINMATH bool is_nan() const;
 

+ 1 - 1
panda/src/linmath/lvecBase4_src.I

@@ -188,7 +188,7 @@ __setitem__(int i, FLOATTYPE v) {
 //       Access: Public, Static
 //  Description: Returns 4: the number of components of a LVecBase4.
 ////////////////////////////////////////////////////////////////////
-INLINE_LINMATH size_t FLOATNAME(LVecBase4)::
+INLINE_LINMATH int FLOATNAME(LVecBase4)::
 size() {
   return 4;
 }

+ 1 - 1
panda/src/linmath/lvecBase4_src.h

@@ -43,7 +43,7 @@ PUBLISHED:
 #ifdef HAVE_PYTHON
   INLINE_LINMATH void __setitem__(int i, FLOATTYPE v);
 #endif
-  INLINE_LINMATH static size_t size();
+  INLINE_LINMATH static int size();
 
   INLINE_LINMATH bool is_nan() const;