aboutsummaryrefslogtreecommitdiffstats
path: root/include/chartypes.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/chartypes.h')
-rw-r--r--include/chartypes.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/chartypes.h b/include/chartypes.h
index 0560769..77bcad9 100644
--- a/include/chartypes.h
+++ b/include/chartypes.h
@@ -107,7 +107,7 @@
#endif
#ifndef UNCTRL
/* control char to letter -- ASCII */
-# define UNCTRL(x) (TOUPPER((x) | 0x40))
+# define UNCTRL(x) (TOUPPER(x) ^ 0x40)
#endif
#endif /* _SH_CHARTYPES_H */