]> ncurses.scripts.mit.edu Git - ncurses.git/blobdiff - form/fld_stat.c
ncurses 5.9 - patch 20120310
[ncurses.git] / form / fld_stat.c
index 46f89e674836e7ce83de568fb5fcdb48ed3046b2..3e6f1921677d8b4ae204699e6673e79cdbf5ceee 100644 (file)
@@ -1,5 +1,5 @@
 /****************************************************************************
- * Copyright (c) 1998-2004,2010 Free Software Foundation, Inc.              *
+ * Copyright (c) 1998-2010,2012 Free Software Foundation, Inc.              *
  *                                                                          *
  * Permission is hereby granted, free of charge, to any person obtaining a  *
  * copy of this software and associated documentation files (the            *
@@ -32,7 +32,7 @@
 
 #include "form.priv.h"
 
-MODULE_ID("$Id: fld_stat.c,v 1.12 2010/01/23 21:14:36 tom Exp $")
+MODULE_ID("$Id: fld_stat.c,v 1.13 2012/03/11 00:37:16 tom Exp $")
 
 /*---------------------------------------------------------------------------
 |   Facility      :  libnform  
@@ -53,7 +53,7 @@ set_field_status(FIELD *field, bool status)
   if (status)
     field->status |= _CHANGED;
   else
-    field->status &= ~_CHANGED;
+    field->status &= (unsigned short)(~_CHANGED);
 
   RETURN(E_OK);
 }