]> www.ginac.de Git - ginac.git/blobdiff - check/genex.cpp
lst(0) now works as expected
[ginac.git] / check / genex.cpp
index f4bffb151a484d5b87129833a9dd634e7f253db5..8875ed6c9ecedb0d846c423f3e57d9cdf25ca21b 100644 (file)
@@ -4,7 +4,7 @@
  *  input in the consistency checks. */
 
 /*
- *  GiNaC Copyright (C) 1999-2001 Johannes Gutenberg University Mainz, Germany
+ *  GiNaC Copyright (C) 1999-2003 Johannes Gutenberg University Mainz, Germany
  *
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by
  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  */
 
-// For rand() and friends:
-#include <stdlib.h>
-
+#include <cstdlib>
 #include "ginac.h"
+using namespace std;
 using namespace GiNaC;
 
 /* Create a dense univariate random polynomial in x.
@@ -152,4 +151,6 @@ sparse_tree(const symbol & x,
                        } else
                                return random_symbol(x,y,z,rational,complex);
        }
+
+       return 0;
 }