Uploaded image for project: 'Core ReactOS'
  1. Core ReactOS
  2. CORE-7175 Attempt to fix gcc warnings that probably result in runtime errors
  3. CORE-7178

lib\rtl\res.c:312:9: comparison is always true due to limited range of data type

    XMLWordPrintable

    Details

    • Type: Sub-task
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Fix Version/s: None
    • Component/s: NTCore
    • Labels:

      Description

      lib\rtl\res.c:312:9: error: comparison is always true due to limited range of data type [-Werror=type-limits]

      This check does not make sense at all. The id variable is a USHORT and will always be less than or equal to USHORT_MAX

        Attachments

          Activity

            People

            • Assignee:
              bug zilla Bug Zilla
              Reporter:
              encoded encoded
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: