]> granicus.if.org Git - neomutt/commitdiff
Having a signed one-bit bitfield is quite odd -- its value is either
authorRalf Wildenhues <wildenhues@ins.uni-bonn.de>
Mon, 8 Nov 2004 08:43:17 +0000 (08:43 +0000)
committerRalf Wildenhues <wildenhues@ins.uni-bonn.de>
Mon, 8 Nov 2004 08:43:17 +0000 (08:43 +0000)
0 or -1.  Although the current code is not broken because it doesn't
test equality to 1, IMHO it's better not to use that.

imap/imap_private.h

index 0a554097178b6c418b7128c6a6d635975509805e..9905f5b993898ec14206527a2a26a8a1c2bc228c 100644 (file)
@@ -178,7 +178,7 @@ typedef struct
   unsigned char rights[(RIGHTSMAX + 7)/8];
   unsigned int newMailCount;
   IMAP_CACHE cache[IMAP_CACHE_LEN];
-  int noclose : 1;
+  unsigned int noclose : 1;
   
   /* all folder flags - system flags AND keywords */
   LIST *flags;