Skip to content
代码片段 群组 项目
提交 5b31aa66 编辑于 作者: Timotej Ecimovic's avatar Timotej Ecimovic
浏览文件

Remove the odd formatting for negative hex numbers.

上级 28c80bd7
No related branches found
No related tags found
无相关合并请求
...@@ -28,6 +28,7 @@ export function cantorPair(x, y) { ...@@ -28,6 +28,7 @@ export function cantorPair(x, y) {
export function asHex(value, padding) { export function asHex(value, padding) {
if (value == null) return '' if (value == null) return ''
if (value < 0) return value.toString()
return '0x' + value.toString(16).padStart(padding, '0').toUpperCase() return '0x' + value.toString(16).padStart(padding, '0').toUpperCase()
} }
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册