]> www.ginac.de Git - ginac.git/blobdiff - check/time_lw_Pprime.cpp
Added small program that exhibits the memory leak in the ginac_yylex() [Sheplyakov].
[ginac.git] / check / time_lw_Pprime.cpp
index 19b05591c46d53021ba297f1eb5eaf9ec2d3b1ab..5174efc05db520aedee0b007bcc57dae5f35cf27 100644 (file)
@@ -4,7 +4,7 @@
  *  Lewis and Michael Wester. */
 
 /*
- *  GiNaC Copyright (C) 1999-2005 Johannes Gutenberg University Mainz, Germany
+ *  GiNaC Copyright (C) 1999-2007 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
@@ -88,7 +88,7 @@ unsigned time_lw_Pprime()
        } else {
                cout << " failed ";
        }
-       cout << int(1000*(time/count))*0.001 << 's' << endl;
+       cout << time/count << 's' << endl;
        
        return result;
 }