Harmless int type fixes in SortCollector.
Project: http://git-wip-us.apache.org/repos/asf/lucy/repo Commit: http://git-wip-us.apache.org/repos/asf/lucy/commit/110cfc2b Tree: http://git-wip-us.apache.org/repos/asf/lucy/tree/110cfc2b Diff: http://git-wip-us.apache.org/repos/asf/lucy/diff/110cfc2b Branch: refs/heads/master Commit: 110cfc2bb216605cd356196dd5eefd18c819bd74 Parents: bca2a20 Author: Marvin Humphrey <mar...@rectangular.com> Authored: Thu May 26 20:22:04 2016 -0700 Committer: Marvin Humphrey <mar...@rectangular.com> Committed: Thu May 26 20:22:04 2016 -0700 ---------------------------------------------------------------------- core/Lucy/Search/Collector/SortCollector.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/lucy/blob/110cfc2b/core/Lucy/Search/Collector/SortCollector.c ---------------------------------------------------------------------- diff --git a/core/Lucy/Search/Collector/SortCollector.c b/core/Lucy/Search/Collector/SortCollector.c index 5ee1cfd..d23e708 100644 --- a/core/Lucy/Search/Collector/SortCollector.c +++ b/core/Lucy/Search/Collector/SortCollector.c @@ -61,7 +61,7 @@ #define ACTIONS_MASK 0x1F // Pick an action based on a SortRule and if needed, a SortCache. -static int8_t +static uint8_t S_derive_action(SortRule *rule, SortCache *sort_cache); // Decide whether a doc should be inserted into the HitQueue. @@ -178,7 +178,7 @@ SortColl_Destroy_IMP(SortCollector *self) { SUPER_DESTROY(self, SORTCOLLECTOR); } -static int8_t +static uint8_t S_derive_action(SortRule *rule, SortCache *cache) { int32_t rule_type = SortRule_Get_Type(rule); bool reverse = !!SortRule_Get_Reverse(rule); @@ -214,7 +214,7 @@ S_derive_action(SortRule *rule, SortCache *cache) { default: ; } - THROW(ERR, "Unknown width: %i8", width); + THROW(ERR, "Unknown width: %i32", width); } else { return AUTO_TIE; @@ -223,7 +223,7 @@ S_derive_action(SortRule *rule, SortCache *cache) { else { THROW(ERR, "Unrecognized SortRule type %i32", rule_type); } - UNREACHABLE_RETURN(int8_t); + UNREACHABLE_RETURN(uint8_t); } void