(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.
This commit is contained in:
		@@ -776,6 +776,8 @@ static void ini_save_settings(IniFile *ini, const SettingDesc *sd, const char *g
 | 
				
			|||||||
			case SDT_MANYOFMANY:
 | 
								case SDT_MANYOFMANY:
 | 
				
			||||||
				switch (GetVarMemType(sld->conv)) {
 | 
									switch (GetVarMemType(sld->conv)) {
 | 
				
			||||||
				case SLE_VAR_BL:
 | 
									case SLE_VAR_BL:
 | 
				
			||||||
 | 
										if (*(bool*)ptr == (bool)(unsigned long)p) continue;
 | 
				
			||||||
 | 
										break;
 | 
				
			||||||
				case SLE_VAR_I8:
 | 
									case SLE_VAR_I8:
 | 
				
			||||||
				case SLE_VAR_U8:
 | 
									case SLE_VAR_U8:
 | 
				
			||||||
					if (*(byte*)ptr == (byte)(unsigned long)p) continue;
 | 
										if (*(byte*)ptr == (byte)(unsigned long)p) continue;
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user