Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 132055 | Differences between
and this patch

Collapse All | Expand All

(-)source/d_scache.cpp (-1 / +1 lines)
Lines 199-205 Link Here
199
	if ((height < 0) || (height > 256))
199
	if ((height < 0) || (height > 256))
200
		Sys_Error("D_SCAlloc: bad cache height %d\n", height);
200
		Sys_Error("D_SCAlloc: bad cache height %d\n", height);
201
201
202
	size = (int)&((surfcache_t *)0)->data[size];
202
	size = &((surfcache_t *)0)->data[size] - (vuint8*)0;
203
	size = (size + 3) & ~3;
203
	size = (size + 3) & ~3;
204
	if (size > sc_size)
204
	if (size > sc_size)
205
		Sys_Error("D_SCAlloc: %i > cache size", size);
205
		Sys_Error("D_SCAlloc: %i > cache size", size);
(-)source/sv_acs.cpp (-2 / +2 lines)
Lines 3380-3388 Link Here
3380
3380
3381
		ACSVM_CASE(PCD_CaseGotoSorted)
3381
		ACSVM_CASE(PCD_CaseGotoSorted)
3382
			//	The count and jump table are 4-byte aligned.
3382
			//	The count and jump table are 4-byte aligned.
3383
			if ((int)ip & 3)
3383
			if (ActiveObject->PtrToOffset(ip) & 3)
3384
			{
3384
			{
3385
				ip += 4 - ((int)ip & 3);
3385
				ip += 4 - (ActiveObject->PtrToOffset(ip) & 3);
3386
			}
3386
			}
3387
			{
3387
			{
3388
				int numcases = READ_INT32(ip);
3388
				int numcases = READ_INT32(ip);

Return to bug 132055