https://bugs.openldap.org/show_bug.cgi?id=9961

          Issue ID: 9961
           Summary: LMDB: -sizeof is an error because sizeof is unsigned
           Product: LMDB
           Version: 0.9.29
          Hardware: All
                OS: Windows
            Status: UNCONFIRMED
          Keywords: needs_review
          Severity: normal
          Priority: ---
         Component: liblmdb
          Assignee: b...@openldap.org
          Reporter: openl...@serice.net
  Target Milestone: ---

MSVC++ defaults to having "SDL checks" enabled which causes -sizeof(size_t) in
mdb.c to cause the following compilation error:

    error C4146: unary minus operator applied to unsigned type

With "SDL checks" disabled, this is still results in a warning which can be
avoided by using the following instead:

    (~sizeof(size_t) + 1)

-- 
You are receiving this mail because:
You are on the CC list for the issue.

Reply via email to