[Groonga-commit] groonga/grnxx [master] Use the maximum value as an invalid value.

Back to archive index

susumu.yata null+****@clear*****
Tue Feb 19 21:00:06 JST 2013


susumu.yata	2013-02-19 21:00:06 +0900 (Tue, 19 Feb 2013)

  New Revision: 5d809a1bf359d25a977a8964fcb5bcd0d15e9a13
  https://github.com/groonga/grnxx/commit/5d809a1bf359d25a977a8964fcb5bcd0d15e9a13

  Log:
    Use the maximum value as an invalid value.

  Modified files:
    lib/map/da/basic_trie.hpp

  Modified: lib/map/da/basic_trie.hpp (+1 -1)
===================================================================
--- lib/map/da/basic_trie.hpp    2013-02-19 12:52:42 +0900 (ea6a3bc)
+++ lib/map/da/basic_trie.hpp    2013-02-19 21:00:06 +0900 (1b8e43d)
@@ -78,7 +78,7 @@ constexpr uint32_t MAX_CHUNK_LEVEL   = 5;
 // Chunks in the same level compose a doubly linked list. The entry chunk of
 // a linked list is called a leader. INVALID_LEADER means that
 // the linked list is empty and there exists no leader.
-constexpr uint32_t INVALID_LEADER    = 0x7FFFFFFFU;
+constexpr uint32_t INVALID_LEADER    = std::numeric_limits<uint32_t>::max();
 
 struct Header {
   uint32_t nodes_block_id;
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index