diag_file::size() was setting the m_state and returning 0 on error, which violated original size() convention not to change stream state and to return fsize_max on error. Changing m_state prevented declaring size() method as const before. cache::seek() was missing size() return value check. Signed-off-by: Simon Rozman <simon@rozman.si>
Languages
C++
100%