summaryrefslogtreecommitdiff
path: root/regen
diff options
context:
space:
mode:
Diffstat (limited to 'regen')
-rw-r--r--regen/regcomp.pl4
1 files changed, 4 insertions, 0 deletions
diff --git a/regen/regcomp.pl b/regen/regcomp.pl
index 6ed84f3293..69643ca5b8 100644
--- a/regen/regcomp.pl
+++ b/regen/regcomp.pl
@@ -262,6 +262,10 @@ foreach my $file ("op_reg_common.h", "regexp.h") {
foreach my $key (keys %definitions) {
s/\b$key\b/$definitions{$key}/g;
}
+
+ # Remove the U suffix from unsigned int literals
+ s/\b([0-9]+)U\b/$1/g;
+
my $newval = eval $_; # Get numeric definition
$definitions{$define} = $newval;