mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-11-23 18:49:08 +08:00
fix issue 1354
This commit is contained in:
parent
370f1c65ad
commit
53eab2ee92
@ -28,10 +28,12 @@
|
||||
#define ultoa _ultoa
|
||||
#endif /* __GNUC__ */
|
||||
#define SIGNED
|
||||
#if defined(_MSC_VER)
|
||||
#define snprintf _snprintf
|
||||
#if (_MSC_VER <= 1400)
|
||||
#define vsnprintf _vsnprintf
|
||||
#endif /* _WIN32 */
|
||||
#endif /* (_MSC_VER <= 1400) */
|
||||
#endif /* defined(_MSC_VER) */
|
||||
#else
|
||||
#define __UNIX__
|
||||
#include <limits.h>
|
||||
|
@ -177,7 +177,7 @@ class TessLangModEdge : public LangModEdge {
|
||||
// to quickly lookup exisiting edges to converge during search
|
||||
inline unsigned int Hash() const {
|
||||
return static_cast<unsigned int>(((start_edge_ | end_edge_) ^
|
||||
((reinterpret_cast<unsigned long int>(dawg_)))) ^
|
||||
((reinterpret_cast<uintptr_t>(dawg_)))) ^
|
||||
((unsigned int)edge_mask_) ^
|
||||
class_id_);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user