changeset 228:7ea6acdb8364

themwi-update-numdb2: logic fix in abbrev number creation
author Mychaela Falconia <falcon@freecalypso.org>
date Mon, 14 Aug 2023 10:29:22 -0800
parents a349ae9d90fa
children 626824449ddf
files utils/themwi-update-numdb2.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/utils/themwi-update-numdb2.c	Mon Aug 14 10:18:50 2023 -0800
+++ b/utils/themwi-update-numdb2.c	Mon Aug 14 10:29:22 2023 -0800
@@ -240,7 +240,9 @@
 	own_rec.number[2] = suffix;
 	handle_number_attr(&own_rec, cp);
 	enter_owned_number(&own_rec);
-	if (!prefix_allows_abbrev || own_rec.usage != NUMBER_USAGE_TYPE_GSM_SUB)
+	if (!prefix_allows_abbrev)
+		return;
+	if ((own_rec.usage & NUMBER_USAGE_MASK) != NUMBER_USAGE_TYPE_GSM_SUB)
 		return;
 	bzero(&short_rec, sizeof short_rec);
 	short_rec.short_num = suffix;