Revision: 1041
Author: [email protected]
Date: Fri Feb  5 09:56:41 2010
Log: Use atoi() rather than SvUV() to get ticks_per_sec.
http://code.google.com/p/perl-devel-nytprof/source/detail?r=1041

Modified:
 /trunk/NYTProf.xs

=======================================
--- /trunk/NYTProf.xs   Fri Jan 22 03:32:44 2010
+++ /trunk/NYTProf.xs   Fri Feb  5 09:56:41 2010
@@ -4245,7 +4245,7 @@

store_attrib_sv(aTHX_ attr_hv, text, text_end - text, value_sv);
                 if (memEQs(text, text_end - text, "ticks_per_sec")) {
-                    ticks_per_sec = (unsigned int)SvUV(value_sv);
+                    ticks_per_sec = (unsigned int)atoi(value);
                 }
                 else if (memEQs(text, text_end - text, "nv_size")) {
                     if (sizeof(NV) != atoi(value))

--
You've received this message because you are subscribed to
the Devel::NYTProf Development User group.

Group hosted at:  http://groups.google.com/group/develnytprof-dev
Project hosted at:  http://perl-devel-nytprof.googlecode.com
CPAN distribution:  http://search.cpan.org/dist/Devel-NYTProf

To post, email:  [email protected]
To unsubscribe, email:  [email protected]

Reply via email to