Src: DiffList.cpp
Some SPECIAL_ITEM_POS cleanups
Src: DirActions.cpp DirDoc.cpp DirView.cpp DirView.h
+ Fix check for pointer/value by using bit-shift instead of a cast
+ Src: GhostTextBuffer.h
+ Src/editlib: ccrystaltextbuffer.h
2006-09-21 WinMerge experimental release 2.5.7.1 (SVN revision 3600)
LPCTSTR GetText () const
{
- // see the m_szText/m_pszText definition about the use of HIWORD
- if (HIWORD ((DWORD) m_pszText) != 0)
+ // See the m_szText/m_pszText definition
+ // Check if m_pszText is a pointer by removing bits having
+ // possible char value
+ if (((INT_PTR)m_pszText >> 16) != 0)
return m_pszText;
return m_szText;
};
LPCTSTR GetText () const
{
- // see the m_szText/m_pszText definition about the use of HIWORD
- if (HIWORD ((DWORD) m_pszText) != 0)
+ // See the m_szText/m_pszText definition
+ // Check if m_pszText is a pointer by removing bits having
+ // possible char value
+ if (((INT_PTR)m_pszText >> 16) != 0)
return m_pszText;
return m_szText;
};