Don't use sizeof to get size of valarray in GlobalLockServerStatusSection

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 4.3.1
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • Execution Team 2019-09-23
    • 0
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      This code incorrectly uses sizeof instead of size() to determine the number of elements in the valarray. sizeof returns the size of the type, not the number of elements.

      This does not, and has not caused any bugs, but should be fixed for clarity and correctness.

            Assignee:
            Louis Williams
            Reporter:
            Louis Williams
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: