const Long = require('long')

module.exports = offset => !offset || Long.fromValue(offset).compare(0) === -1

const Long = require('long')

module.exports = offset => !offset || Long.fromValue(offset).isNegative()

Check for "offset is negative" directly
Check for "offset is negative" directly

Long.compare does a lot more than what we need here: We just want to know whether
the offset is negative (-1 for undefined, or potentially one of the special values).
