Преглед изворни кода

fix return type in assertions

David Rose пре 21 година
родитељ
комит
cbb0cd085e
1 измењених фајлова са 4 додато и 4 уклоњено
  1. 4 4
      panda/src/express/datagramIterator.I

+ 4 - 4
panda/src/express/datagramIterator.I

@@ -386,8 +386,8 @@ get_be_uint16() {
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 INLINE PN_uint32 DatagramIterator::
 INLINE PN_uint32 DatagramIterator::
 get_be_uint32() {
 get_be_uint32() {
-  nassertr(_datagram != (const Datagram *)NULL, 0.0);
-  nassertr(_current_index < _datagram->get_length(), 0.0);
+  nassertr(_datagram != (const Datagram *)NULL, 0);
+  nassertr(_current_index < _datagram->get_length(), 0);
 
 
   PN_uint32 tempvar;
   PN_uint32 tempvar;
   // Avoid reading junk data off the end of the datagram:
   // Avoid reading junk data off the end of the datagram:
@@ -407,8 +407,8 @@ get_be_uint32() {
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 INLINE PN_uint64 DatagramIterator::
 INLINE PN_uint64 DatagramIterator::
 get_be_uint64() {
 get_be_uint64() {
-  nassertr(_datagram != (const Datagram *)NULL, 0.0);
-  nassertr(_current_index < _datagram->get_length(), 0.0);
+  nassertr(_datagram != (const Datagram *)NULL, 0);
+  nassertr(_current_index < _datagram->get_length(), 0);
 
 
   PN_uint64 tempvar;
   PN_uint64 tempvar;
   // Avoid reading junk data off the end of the datagram:
   // Avoid reading junk data off the end of the datagram: