commit f9eea453b714bf8438e0f50d195b1bb1e8bf1a2f
parent 374773748b6b5890a0b842e6dbb90dfd2213c54c
Author: Roberto Ierusalimschy <roberto@inf.puc-rio.br>
Date: Mon, 27 Jun 2011 15:22:22 -0300
avoid "magic constant" 32 (the difference from 'A' to 'a')
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lctype.h b/lctype.h
@@ -1,5 +1,5 @@
/*
-** $Id: lctype.h,v 1.9 2011/06/23 16:00:43 roberto Exp roberto $
+** $Id: lctype.h,v 1.10 2011/06/24 12:25:33 roberto Exp roberto $
** 'ctype' functions for Lua
** See Copyright Notice in lua.h
*/
@@ -64,7 +64,7 @@
/*
** this 'ltolower' only works for alphabetic characters
*/
-#define ltolower(c) ((c) | 32)
+#define ltolower(c) ((c) | ('A' ^ 'a'))
/* two more entries for 0 and -1 (EOZ) */