Skip to content

EvaCheckInfo::m_framesToExpire for detected beacon is parsed as unsigned int with a negative value #2144

@Caball009

Description

@Caball009

Eva.ini contains this event for a detected beacon:

EvaEvent BeaconDetected
  Priority = 2
  TimeBetweenChecksMS = 30000   ; 30 seconds
  ExpirationTimeMS  = -1        ; -1 means FOREVER

{ "ExpirationTimeMS", INI::parseDurationUnsignedInt, nullptr, offsetof( EvaCheckInfo, m_framesToExpire) },

m_framesToExpire is parsed as unsigned int but has a negative value in the ini file. This works as intended, but it's unexpected and may stop working if scanUnsignedInt is refactored. It's the only instance that I could find where a negative value is parsed as unsigned integer.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions