Skip to content

Specify unsigned integers as in the range 0 to 2^31-1 #237

Closed
@michaelpj

Description

@michaelpj

Currently, some properties seem to be intended to be unsigned integers, but have an upper bound of 2^31-1. This is atypical, since usually a 32-bit unsigned integer would have an upper bound of 2^32-1 instead, with 2^31-1 being the upper bound of a signed integer.

This is awkward for implementations which would like to use a native unsigned integer type for these, but still have to deal with bounds issues since the bounds will not match what native unsigned 32-bit integers have.

These bounds in the DAP are apparently also preventing the LSP specification from using the more typical bounds for unsigned integers: microsoft/language-server-protocol#1394 (comment)

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions