Revision: 1202
Author: tim.bunce
Date: Tue Apr 27 02:12:34 2010
Log: Fix warning: comparison is always false due to limited range of data
type
http://code.google.com/p/perl-devel-nytprof/source/detail?r=1202
Modified:
/trunk/FileHandle.xs
=======================================
--- /trunk/FileHandle.xs Tue Apr 13 03:05:10 2010
+++ /trunk/FileHandle.xs Tue Apr 27 02:12:34 2010
@@ -299,7 +299,7 @@
}
while (1) {
unsigned char *p = ifile->large_buffer + ifile->count;
- unsigned int remaining = ((unsigned char *) ifile->zs.next_out) -
p;
+ int remaining = ((unsigned char *) ifile->zs.next_out) - p;
if (remaining >= len) {
Copy(p, buffer, len, unsigned char);
@@ -522,8 +522,7 @@
return 0;
}
while (1) {
- unsigned int remaining
- = NYTP_FILE_LARGE_BUFFER_SIZE - ofile->zs.avail_in;
+ int remaining = NYTP_FILE_LARGE_BUFFER_SIZE - ofile->zs.avail_in;
unsigned char *p = ofile->large_buffer + ofile->zs.avail_in;
if (remaining >= len) {
--
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]