Permalink
Browse files

fixed #516 crashes of daemon on 32-bit systems

  • Loading branch information...
tomatolog committed Sep 25, 2018
1 parent 7c6dffe commit 1455ba2bf8079f03ce7f861a8d9662a360d705de
Showing with 4 additions and 4 deletions.
  1. +2 −2 src/sphinxexpr.cpp
  2. +2 −2 src/sphinxrt.cpp
@@ -2739,14 +2739,14 @@ struct ExprNode_t
union
{
int64_t m_iConst; ///< constant value, for TOK_CONST_INT type
int64_t m_iConst = 0; ///< constant value, for TOK_CONST_INT type
float m_fConst; ///< constant value, for TOK_CONST_FLOAT type
int m_iFunc; ///< built-in function id, for TOK_FUNC type
int m_iArgs; ///< args count, for arglist (token==',') type
ConstList_c * m_pConsts; ///< constants list, for TOK_CONST_LIST type
MapArg_c * m_pMapArg; ///< map argument (maps name to const or name to expr), for TOK_MAP_ARG type
const char * m_sIdent; ///< pointer to const char, for TOK_IDENT type
SphAttr_t * m_pAttr = nullptr; ///< pointer to 64-bit value, for TOK_ITERATOR type
SphAttr_t * m_pAttr; ///< pointer to 64-bit value, for TOK_ITERATOR type
};
int m_iLeft = -1;
int m_iRight = -1;
@@ -184,8 +184,8 @@ struct RtWord_T
{
union
{
WORDID m_uWordID; ///< my keyword id
const BYTE * m_sWord = nullptr;
WORDID m_uWordID = 0; ///< my keyword id
const BYTE * m_sWord;
};
DWORD m_uDocs = 0; ///< document count (for stats and/or BM25)
DWORD m_uHits = 0; ///< hit count (for stats and/or BM25)

0 comments on commit 1455ba2

Please sign in to comment.