ObjFW  Check-in [7806d917b9]

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: 7806d917b97594511eadd2bf895d22b6dbd1d360dec4af9fb0b23ba52ed2f12f
User & Date: js on 2012-07-04 19:11:47
Other Links: manifest | tags
Context
2012-07-04
20:07
Generate titlecase tables. check-in: d5c4406548 user: js tags: trunk
19:11
sparsearray.m: Cast to 32 bit before shifting. check-in: 7806d917b9 user: js tags: trunk
19:11
Add -I for included runtime in generators. check-in: 910631a4c8 user: js tags: trunk
Changes

Modified src/runtime/sparsearray.m from [921b7b3d3d] to [e7f682556c].

103
104
105
106
107
108
109
110


111
112
113
114
115
116
117
103
104
105
106
107
108
109

110
111
112
113
114
115
116
117
118







-
+
+







				const void *obj;

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

				if (obj == NULL)
					continue;

				idx = (uint32_t)((i << 16) | (j << 8) | k);
				idx = (uint32_t)
				    (((uint32_t)i << 16) | (j << 8) | k);
				objc_sparsearray_set(dst, idx, obj);
			}
		}
#else
		for (j = 0; j < 256; j++) {
			const void *obj;