A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/aeron-io/simple-binary-encoding/issues/714 below:

[C++] unsigned conversion from ‘int’ to ‘uint64_t’ · Issue #714 · aeron-io/simple-binary-encoding · GitHub

With -Wsign-conversion -Werror options I'm getting compilation error on m_index assign:

        inline void wrapForDecode(
            char *buffer,
            std::uint64_t *pos,
            const std::uint64_t actingVersion,
            const std::uint64_t bufferLength)
        {
[...]
            m_index = -1;
[...]
        }

It would be better to define m_index as std::int64_t. (but then hasNext() needs to be adjusted as well)


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4