- n = v & UINT64_MAX;
-
- if (n != v) {
- return WERR_DS_INVALID_ATTRIBUTE_SYNTAX;
- }
-
- if ((v & INT64_MIN) && buf[0] != '-') {
- /*
- * if the 0x8000000000000000 bit is set,
- * it is a negative value. We need to
- * make sure the it was given as a negative
- * string value.
- *
- * We need to accept '-9223372036854775807',
- * but reject '9223372036854775809',
- * both represent 0x8000000000000001.
- */
- return WERR_DS_INVALID_ATTRIBUTE_SYNTAX;
- }
-