JSDOC/TokenReader.vala
authorAlan Knowles <alan@roojs.com>
Fri, 2 Oct 2015 09:08:15 +0000 (17:08 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 2 Oct 2015 09:08:15 +0000 (17:08 +0800)
JSDOC/TokenReader.vala

index 03a6065..15301cb 100644 (file)
@@ -480,7 +480,7 @@ namespace JSDOC {
             
             var found = "";
             
-            while (!stream.lookEOF() && Lang.isNumber(found+stream.look())){
+            while (!stream.lookEOF() && Lang.isNumber(found+(string)stream.look())){
                 found += stream.next();
             }
             
@@ -499,12 +499,12 @@ namespace JSDOC {
         /**
             @returns {Boolean} Was the token found?
          */
-        public bool read_hex  (TokenStream stream, TokenArray tokens)
+        public bool read_hex  (TextStream stream, TokenArray tokens)
         {
             var found = stream.next(2);
             
             while (!stream.lookEOF()) {
-                if (Lang.isHexDec(found) && !Lang.isHexDec(found+stream.look())) { // done
+                if (Lang.isHexDec(found) && !Lang.isHexDec(found+(string)stream.look())) { // done
                     tokens.push(new Token(found, "NUMB", "HEX_DEC", this.line));
                     return true;
                 }