aboutsummaryrefslogtreecommitdiffstats
path: root/src/data.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/data.c')
-rw-r--r--src/data.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/data.c b/src/data.c
index 2ee84f01a14..4a63eb7d2f5 100644
--- a/src/data.c
+++ b/src/data.c
@@ -930,7 +930,7 @@ store_symval_forwarding (symbol, valcontents, newval, buf)
930 break; 930 break;
931 931
932 case Lisp_Misc_Boolfwd: 932 case Lisp_Misc_Boolfwd:
933 *XBOOLFWD (valcontents)->boolvar = NILP (newval) ? 0 : 1; 933 *XBOOLFWD (valcontents)->boolvar = !NILP (newval);
934 break; 934 break;
935 935
936 case Lisp_Misc_Objfwd: 936 case Lisp_Misc_Objfwd:
@@ -970,12 +970,11 @@ store_symval_forwarding (symbol, valcontents, newval, buf)
970 case Lisp_Misc_Buffer_Objfwd: 970 case Lisp_Misc_Buffer_Objfwd:
971 { 971 {
972 int offset = XBUFFER_OBJFWD (valcontents)->offset; 972 int offset = XBUFFER_OBJFWD (valcontents)->offset;
973 Lisp_Object type; 973 Lisp_Object type = XBUFFER_OBJFWD (valcontents)->slottype;
974 974
975 type = PER_BUFFER_TYPE (offset);
976 if (! NILP (type) && ! NILP (newval) 975 if (! NILP (type) && ! NILP (newval)
977 && XTYPE (newval) != XINT (type)) 976 && XTYPE (newval) != XINT (type))
978 buffer_slot_type_mismatch (offset); 977 buffer_slot_type_mismatch (symbol, XINT (type));
979 978
980 if (buf == NULL) 979 if (buf == NULL)
981 buf = current_buffer; 980 buf = current_buffer;