(svn r7124) -Fix (r37xx): sizeof(bool) = 4 for (certain) OSX do not assume it is 1. This would break
authorDarkvater
Fri, 10 Nov 2006 11:45:50 +0000
changeset 5066 72aa68614963
parent 5065 929a12f006bf
child 5067 870dfdcef898
(svn r7124) -Fix (r37xx): sizeof(bool) = 4 for (certain) OSX do not assume it is 1. This would break
the saving of certain values to the config. Thanks PandaMojo ford ebugging.
settings.c
--- a/settings.c	Thu Nov 09 18:31:06 2006 +0000
+++ b/settings.c	Fri Nov 10 11:45:50 2006 +0000
@@ -776,6 +776,8 @@
 			case SDT_MANYOFMANY:
 				switch (GetVarMemType(sld->conv)) {
 				case SLE_VAR_BL:
+					if (*(bool*)ptr == (bool)(unsigned long)p) continue;
+					break;
 				case SLE_VAR_I8:
 				case SLE_VAR_U8:
 					if (*(byte*)ptr == (byte)(unsigned long)p) continue;