Bug 696162 - Followup: Use static_cast rather than reinterpret_cast, where appropriate.

This commit is contained in:
Justin Lebar 2012-01-24 16:17:28 -05:00
Родитель cd6750ebf7
Коммит d1f2f697a9
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -396,7 +396,7 @@ AllocChunkSlow()
* space for one chunk.
*/
char *p = reinterpret_cast<char*>(MapPages(NULL, ChunkSize * 2));
char *p = static_cast<char*>(MapPages(NULL, ChunkSize * 2));
if (p == NULL)
return NULL;
@ -434,7 +434,7 @@ AllocChunk()
*/
/* Fast path; just allocate one chunk and hope it's aligned. */
char *p = reinterpret_cast<char*>(MapPages(NULL, ChunkSize));
char *p = static_cast<char*>(MapPages(NULL, ChunkSize));
if (!p)
return NULL;