[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] Change undefined "uint" to "unsigned"
From: |
Christopher Wellons |
Subject: |
[PATCH] Change undefined "uint" to "unsigned" |
Date: |
Sun, 18 Jul 2021 16:57:19 -0400 |
This fixes a defect introduced in 25162c795. The "uint" type has not
been explicitly defined here, causing compilation to fail.
---
I ran into this while trying to build the newly-released 2.37 targeting
x86_64-w64-mingw32.
libiberty/rust-demangle.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libiberty/rust-demangle.c b/libiberty/rust-demangle.c
index df09b7b8fdd..ac1eb8eb02c 100644
--- a/libiberty/rust-demangle.c
+++ b/libiberty/rust-demangle.c
@@ -75,10 +75,10 @@ struct rust_demangler
int version;
/* Recursion depth. */
- uint recursion;
+ unsigned recursion;
/* Maximum number of times demangle_path may be called recursively. */
#define RUST_MAX_RECURSION_COUNT 1024
-#define RUST_NO_RECURSION_LIMIT ((uint) -1)
+#define RUST_NO_RECURSION_LIMIT ((unsigned) -1)
uint64_t bound_lifetime_depth;
};
--
2.30.2
- [PATCH] Change undefined "uint" to "unsigned",
Christopher Wellons <=