]> www.ginac.de Git - ginac.git/blobdiff - ginsh/ginsh_parser.yy
- added registry for print_context classes (use print_context_class_info::dump_hierar...
[ginac.git] / ginsh / ginsh_parser.yy
index 24abefb8ea779dc8fc4524eff0123823f23ab924..723cfccd2e1b70a72321881baa47605db510656e 100644 (file)
@@ -50,7 +50,7 @@ static char *orig_basic_word_break_characters;
 static const char *orig_basic_word_break_characters;
 #endif
 
-// Expression stack for ", "" and """
+// Expression stack for %, %% and %%%
 static void push(const ex &e);
 static ex exstack[3];
 
@@ -356,9 +356,9 @@ static ex f_determinant(const exprseq &e)
 
 static ex f_diag(const exprseq &e)
 {
-       unsigned dim = e.nops();
+       size_t dim = e.nops();
        matrix &m = *new matrix(dim, dim);
-       for (unsigned i=0; i<dim; i++)
+       for (size_t i=0; i<dim; i++)
                m.set(i, i, e.op(i));
        return m;
 }