Revision: 1266
Author: [email protected]
Date: Tue Jun 1 15:43:00 2010
Log: Fix the data format version check
http://code.google.com/p/perl-devel-nytprof/source/detail?r=1266
Modified:
/trunk/NYTProf.xs
=======================================
--- /trunk/NYTProf.xs Tue Jun 1 15:13:10 2010
+++ /trunk/NYTProf.xs Tue Jun 1 15:43:00 2010
@@ -4366,7 +4366,7 @@
croak("NYTProf data format error while reading header");
if (2 != sscanf(buffer, "NYTProf %d %d\n", &file_major,
&file_minor))
croak("NYTProf data format error while parsing header");
- if (file_major != 3)
+ if (file_major != NYTP_FILE_MAJOR_VERSION)
croak("NYTProf data format version %d.%d is not supported by
NYTProf %s (which expects version %d.%d)",
file_major, file_minor, XS_VERSION,
NYTP_FILE_MAJOR_VERSION, NYTP_FILE_MINOR_VERSION);
--
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]