fix missing ~other_tag, remove some warings
This commit is contained in:
@@ -2078,7 +2078,7 @@ namespace nana
|
||||
|
||||
unsigned x_offset() const
|
||||
{
|
||||
return (h.empty() ? 0 : h.value());
|
||||
return static_cast<unsigned>(h.empty() ? 0 : h.value());
|
||||
}
|
||||
|
||||
index_pair offset_y_abs, offset_y_dpl; //cat stands for category, item stands for item. "item == npos" means that is a category.
|
||||
|
||||
@@ -3451,7 +3451,7 @@ namespace nana{ namespace widgets
|
||||
|
||||
unsigned text_editor::_m_char_by_pixels(const unicode_bidi::entity& ent, unsigned pos)
|
||||
{
|
||||
unsigned len = ent.end - ent.begin;
|
||||
auto len = static_cast<std::size_t>(ent.end - ent.begin);
|
||||
|
||||
std::unique_ptr<unsigned[]> pxbuf(new unsigned[len]);
|
||||
if (graph_.glyph_pixels(ent.begin, len, pxbuf.get()))
|
||||
|
||||
Reference in New Issue
Block a user