mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 19:08:55 -04:00
int -> long
This commit is contained in:
parent
4e1fff429b
commit
36d9d7148c
@ -25,7 +25,7 @@
|
|||||||
// is the principle implementation of the HashGenerator.
|
// is the principle implementation of the HashGenerator.
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
INLINE void ChecksumHashGenerator::
|
INLINE void ChecksumHashGenerator::
|
||||||
add_int(int sum) {
|
add_int(long sum) {
|
||||||
_hash += (size_t)sum;
|
_hash += (size_t)sum;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -48,7 +48,7 @@ add_bool(bool flag) {
|
|||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
INLINE void ChecksumHashGenerator::
|
INLINE void ChecksumHashGenerator::
|
||||||
add_fp(float number, float threshold) {
|
add_fp(float number, float threshold) {
|
||||||
add_int((int)(number / threshold));
|
add_int((long)(number / threshold));
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
@ -60,7 +60,7 @@ add_fp(float number, float threshold) {
|
|||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
INLINE void ChecksumHashGenerator::
|
INLINE void ChecksumHashGenerator::
|
||||||
add_fp(double number, double threshold) {
|
add_fp(double number, double threshold) {
|
||||||
add_int((int)(number / threshold));
|
add_int((long)(number / threshold));
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
@ -72,5 +72,5 @@ add_fp(double number, double threshold) {
|
|||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
INLINE void ChecksumHashGenerator::
|
INLINE void ChecksumHashGenerator::
|
||||||
add_pointer(void *ptr) {
|
add_pointer(void *ptr) {
|
||||||
add_int((int)ptr);
|
add_int((long)ptr);
|
||||||
}
|
}
|
||||||
|
@ -31,7 +31,7 @@
|
|||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
class EXPCL_PANDAEXPRESS ChecksumHashGenerator : public HashGeneratorBase {
|
class EXPCL_PANDAEXPRESS ChecksumHashGenerator : public HashGeneratorBase {
|
||||||
public:
|
public:
|
||||||
INLINE void add_int(int num);
|
INLINE void add_int(long num);
|
||||||
INLINE void add_bool(bool flag);
|
INLINE void add_bool(bool flag);
|
||||||
INLINE void add_fp(float num, float threshold);
|
INLINE void add_fp(float num, float threshold);
|
||||||
INLINE void add_fp(double num, double threshold);
|
INLINE void add_fp(double num, double threshold);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user