Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge branch '2.3'

Closes #70.
  • Loading branch information...
commit 1581f26a7fd2158b8b0149bbd95e9fb42d68a902 2 parents e8fd3e3 + aabfd49
@akheron authored
Showing with 5 additions and 5 deletions.
  1. +5 −5 src/load.c
View
10 src/load.c
@@ -32,12 +32,12 @@
#define TOKEN_NULL 261
/* Locale independent versions of isxxx() functions */
-#define l_isupper(c) ('A' <= c && c <= 'Z')
-#define l_islower(c) ('a' <= c && c <= 'z')
+#define l_isupper(c) ('A' <= (c) && (c) <= 'Z')
+#define l_islower(c) ('a' <= (c) && (c) <= 'z')
#define l_isalpha(c) (l_isupper(c) || l_islower(c))
-#define l_isdigit(c) ('0' <= c && c <= '9')
+#define l_isdigit(c) ('0' <= (c) && (c) <= '9')
#define l_isxdigit(c) \
- (l_isdigit(c) || 'A' <= c || c <= 'F' || 'a' <= c || c <= 'f')
+ (l_isdigit(c) || 'A' <= (c) || (c) <= 'F' || 'a' <= (c) || (c) <= 'f')
/* Read one byte from stream, convert to unsigned char, then int, and
return. return EOF on end of file. This corresponds to the
@@ -48,7 +48,7 @@ typedef struct {
get_func get;
void *data;
char buffer[5];
- int buffer_pos;
+ size_t buffer_pos;
int state;
int line;
int column, last_column;
Please sign in to comment.
Something went wrong with that request. Please try again.