summaryrefslogtreecommitdiffhomepage
path: root/lib/rtnl.c
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2022-06-01 12:36:44 +0200
committerJo-Philipp Wich <jo@mein.io>2022-06-01 12:53:26 +0200
commitd99604749d658f5f344d53e77dd52fbb0f6d176c (patch)
tree2e60555dc4ce9e81b42b7556dd2e2491473f776c /lib/rtnl.c
parent9efbe183d7805eb60652a3745ec48cd32682ef8d (diff)
syntax: adjust number literal parsing and string to number conversion
- Recognize new number literal prefixes `0o` and `0O` for octal as well as `0b` and `0B` for binary number literals - Treat number literals with leading zeros as octal while parsing but as decimal ones on implicit number conversions, means `012` will yield `10` while `+"012"` or `"012" + 0` will yield `12` Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'lib/rtnl.c')
0 files changed, 0 insertions, 0 deletions