[dovecot-cvs] dovecot/src/lib file-cache.c,1.12.2.6,1.12.2.7

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-serv2622

Modified Files:
      Tag: branch_1_0
	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.12.2.6
retrieving revision 1.12.2.7
diff -u -d -r1.12.2.6 -r1.12.2.7
--- file-cache.c	3 Dec 2006 15:21:27 -0000	1.12.2.6
+++ file-cache.c	4 Jan 2007 14:04:10 -0000	1.12.2.7
@@ -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