summaryrefslogtreecommitdiffstats
path: root/usr.bin/locate
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/locate')
-rw-r--r--usr.bin/locate/locate/locate.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/locate/locate/locate.h b/usr.bin/locate/locate/locate.h
index 24df8d4..c2f27fb 100644
--- a/usr.bin/locate/locate/locate.h
+++ b/usr.bin/locate/locate/locate.h
@@ -48,15 +48,15 @@
#define LDC_MAX 28
/* 128-255 bigram codes (128 most common, as determined by 'updatedb') */
-#define BIGRAM_MIN (UCHAR_MAX - CHAR_MAX)
+#define BIGRAM_MIN (UCHAR_MAX - SCHAR_MAX)
#define BIGRAM_MAX UCHAR_MAX
/* 32-127 single character (printable) ascii residue (ie, literal) */
#define ASCII_MIN 32
-#define ASCII_MAX CHAR_MAX
+#define ASCII_MAX SCHAR_MAX
-/* #define TO7BIT(x) (x = ( ((u_char)x) & CHAR_MAX )) */
-#define TO7BIT(x) (x = x & CHAR_MAX )
+/* #define TO7BIT(x) (x = ( ((u_char)x) & SCHAR_MAX )) */
+#define TO7BIT(x) (x = x & SCHAR_MAX )
#if UCHAR_MAX >= 4096
OpenPOWER on IntegriCloud