ObjFW  Check-in [74e605a0f1]

Overview
Comment:sparsearray.m: Cast to 32 bit before shifting.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 74e605a0f109c0b789a4a404fb0aef96a71b3e9d35a4516200c61f52a1d172dc
User & Date: js on 2013-01-02 21:07:20
Other Links: manifest | tags
Context
2013-01-03
21:20
Add OFSystemInfo.h to ObjFW.h. check-in: 4039281f74 user: js tags: trunk
2013-01-02
21:07
sparsearray.m: Cast to 32 bit before shifting. check-in: 74e605a0f1 user: js tags: trunk
2012-12-30
00:22
Fix -[initWithUTF8StringNoCopy:freeWhenDone:]. check-in: c16e6aca56 user: js tags: trunk
Changes

Modified src/runtime/sparsearray.m from [08f66117d0] to [dcfc1896d2].

117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
			const void *obj;

			obj = src->buckets[i]->buckets[j];

			if (obj == NULL)
				continue;

			idx = (i << 8) | j;
			objc_sparsearray_set(dst, idx, obj);
		}
#endif
	}
}

void







|







117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
			const void *obj;

			obj = src->buckets[i]->buckets[j];

			if (obj == NULL)
				continue;

			idx = (uint32_t)((i << 8) | j);
			objc_sparsearray_set(dst, idx, obj);
		}
#endif
	}
}

void