JSDOC/TokenStream.vala
authorAlan Knowles <alan@roojs.com>
Tue, 27 Oct 2015 08:30:38 +0000 (16:30 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 27 Oct 2015 08:30:38 +0000 (16:30 +0800)
JSDOC/TokenStream.vala

index cea0557..76e03cf 100644 (file)
@@ -161,11 +161,11 @@ namespace JSDOC {
 
                }
                
-           public Gee.ArrayList<Token>? nextM(uint howMany) throws TokenStreamError {
+           public Gee.ArrayList<Token>? nextM(int howMany) throws TokenStreamError {
                
                    //if (typeof howMany == "undefined") howMany = 1;
                    if (howMany < 2) { 
-                               throw new  TokenStreamError.ArgumentError("nextM called with wrong number : %d", (int)howMany);
+                               throw new  TokenStreamError.ArgumentError("nextM called with wrong number : %d", howMany);
                    }
                    var got = new Gee.ArrayList<Token>();