aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorr00ster91 <r00ster91@proton.me>2022-10-16 16:58:46 +0200
committerr00ster91 <r00ster91@proton.me>2022-12-09 21:57:17 +0100
commit6b7d9b34e8fcefa731800cef883c2400f9f39de5 (patch)
tree695fc1d564a2bc590d9c87bca57f825d4027716e /src
parentf7fea080b25f932b352d38f126e0a179c5163f68 (diff)
downloadzig-6b7d9b34e8fcefa731800cef883c2400f9f39de5.tar.gz
zig-6b7d9b34e8fcefa731800cef883c2400f9f39de5.zip
api(std.ascii): remove deprecated decls
Diffstat (limited to 'src')
-rw-r--r--src/translate_c.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/translate_c.zig b/src/translate_c.zig
index b324504a54..8ead8e6a28 100644
--- a/src/translate_c.zig
+++ b/src/translate_c.zig
@@ -5738,7 +5738,7 @@ fn parseCNumLit(c: *Context, m: *MacroCtx) ParseError!Node {
if (mem.indexOfScalar(u8, lit_bytes, '.')) |dot_index| {
if (dot_index == 2) {
lit_bytes = try std.fmt.allocPrint(c.arena, "0x0{s}", .{lit_bytes[2..]});
- } else if (dot_index + 1 == lit_bytes.len or !std.ascii.isXDigit(lit_bytes[dot_index + 1])) {
+ } else if (dot_index + 1 == lit_bytes.len or !std.ascii.isHex(lit_bytes[dot_index + 1])) {
// If the literal lacks a digit after the `.`, we need to
// add one since `0x1.p10` would be invalid syntax in Zig.
lit_bytes = try std.fmt.allocPrint(c.arena, "0x{s}0{s}", .{