[dovecot-cvs] dovecot/src/lib file-cache.c,1.18,1.19

tss at dovecot.org tss at dovecot.org
Thu Jan 4 14:04:16 UTC 2007


Update of /var/lib/cvs/dovecot/src/lib
In directory talvi:/tmp/cvs-serv2630

Modified Files:
	file-cache.c 
Log Message:
Changed assert so it doesn't give a compiler warning with 32bit systems.


Index: file-cache.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib/file-cache.c,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -d -r1.18 -r1.19
--- file-cache.c	3 Dec 2006 15:21:29 -0000	1.18
+++ file-cache.c	4 Jan 2007 14:04:13 -0000	1.19
@@ -224,7 +224,7 @@
 	unsigned char *bits;
 	unsigned int first_page, last_page;
 
-	i_assert(size < (uoff_t)-1 && offset < (uoff_t)-1 - size);
+	i_assert((uoff_t)-1 - offset > size);
 
 	if (file_cache_set_size(cache, offset + size) < 0) {
 		/* couldn't grow mapping. just make sure the written memory



More information about the dovecot-cvs mailing list