Skip to content

Commit

Permalink
test an unsigned int by comparing it with zero
Browse files Browse the repository at this point in the history
this upstreams a commit from wesnoth, it silences warnings on
some compilers apparently

fd671b1132f1dac983a63d2b625ac5191f84d143
  • Loading branch information
cbeck88 committed Nov 8, 2017
1 parent 111402d commit 4a72a9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/spirit_po/po_message.hpp
Expand Up @@ -32,7 +32,7 @@ struct po_message {

// Check if message is plural. We do this for now by testing msgid_plural.size().
// Recommended to use this method in case we change it in the future.
bool is_plural() const { return static_cast<bool>(id_plural().size()); }
bool is_plural() const { return id_plural().size() > 0; }
};

/***
Expand Down

0 comments on commit 4a72a9f

Please sign in to comment.