Skip to content

Use unsigned type for size #617

Open

Description

@TheOneRing
 /__w/desktop/desktop/src/libsync/discovery.cpp:470:108: warning: comparison of integer expressions of different signedness: ‘uintmax_t’ {aka ‘long unsigned int’} and ‘int64_t’ {aka ‘long int’} [-Wsign-compare]
  470 |             if (FileSystem::fileTimeToTime_t(info.last_write_time()) != base.modtime() || info.file_size() != base.size() || info.is_directory()) {
      |       

Currently, -1 is used in some parts of the code to indicate invalid values, so the change isn't that simple.

Activity

  1. added this to the Next milestone on Oct 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions