mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-18 12:43:44 -04:00
*** empty log message ***
This commit is contained in:
parent
f20914c08e
commit
2eb381b73a
@ -194,7 +194,7 @@ get_class_by_name(const string &name) {
|
||||
// very likely to be different if the contents of the
|
||||
// file do change.
|
||||
////////////////////////////////////////////////////////////////////
|
||||
long DCFile::
|
||||
unsigned long DCFile::
|
||||
get_hash() const {
|
||||
HashGenerator hash;
|
||||
generate_hash(hash);
|
||||
|
@ -35,7 +35,7 @@ PUBLISHED:
|
||||
|
||||
DCClass *get_class_by_name(const string &name);
|
||||
|
||||
long get_hash() const;
|
||||
unsigned long get_hash() const;
|
||||
|
||||
public:
|
||||
void generate_hash(HashGenerator &hash) const;
|
||||
|
@ -34,9 +34,11 @@
|
||||
#if defined(WIN32)
|
||||
#include <iostream>
|
||||
#include <fstream>
|
||||
#include <iomanip>
|
||||
#else
|
||||
#include <iostream.h>
|
||||
#include <fstream.h>
|
||||
#include <iomanip.h>
|
||||
#endif
|
||||
|
||||
#include <string>
|
||||
|
@ -60,7 +60,7 @@ add_string(const string &str) {
|
||||
// Access: Public
|
||||
// Description: Returns the hash number generated.
|
||||
////////////////////////////////////////////////////////////////////
|
||||
long HashGenerator::
|
||||
unsigned long HashGenerator::
|
||||
get_hash() const {
|
||||
return _hash & 0xffffffff;
|
||||
return (unsigned long)(_hash & 0xffffffff);
|
||||
}
|
||||
|
@ -21,7 +21,7 @@ public:
|
||||
void add_int(int num);
|
||||
void add_string(const string &str);
|
||||
|
||||
long get_hash() const;
|
||||
unsigned long get_hash() const;
|
||||
|
||||
private:
|
||||
long _hash;
|
||||
|
@ -42,7 +42,7 @@ operator [] (int n) {
|
||||
maybe_prime = false;
|
||||
}
|
||||
j++;
|
||||
nassertr(j < (int)_primes.size(), 0)
|
||||
nassertr(j < (int)_primes.size(), 0);
|
||||
}
|
||||
if (maybe_prime) {
|
||||
// Hey, we found a prime!
|
||||
|
Loading…
x
Reference in New Issue
Block a user