diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2009-12-09 21:50:44 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2009-12-09 21:50:44 -0800 |
commit | d4f01068d83ad3376651fb9589106f0418b9ab7e (patch) | |
tree | 962117c248fce2b7125128d33f953eb26ad915a1 | |
parent | 440ed64162b328a51a911f2586c16513c2cfed67 (diff) | |
download | txr-d4f01068d83ad3376651fb9589106f0418b9ab7e.tar.gz txr-d4f01068d83ad3376651fb9589106f0418b9ab7e.tar.bz2 txr-d4f01068d83ad3376651fb9589106f0418b9ab7e.zip |
* parser.l (YYINPUT): Fix signed/unsigned comparison.
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | parser.l | 5 |
2 files changed, 7 insertions, 2 deletions
@@ -1,5 +1,9 @@ 2009-12-09 Kaz Kylheku <kkylheku@gmail.com> + * parser.l (YYINPUT): Fix signed/unsigned comparison. + +2009-12-09 Kaz Kylheku <kkylheku@gmail.com> + * hash.c (sethash): New function. * hash.h (sethash): Declared. @@ -45,8 +45,9 @@ #define YY_INPUT(buf, result, max_size) \ do { \ val c = nil; \ - int n, ch = '*'; \ - for (n = 0; n < max_size && \ + size_t n; \ + int ch = '*'; \ + for (n = 0; n < (size_t) max_size && \ (c = get_byte(yyin_stream)) && \ (ch = c_num(c)) != '\n'; ++n) \ buf[n] = (char) ch; \ |