diff options
author | 2015-01-30 11:36:06 -0800 | |
---|---|---|
committer | 2015-01-30 11:36:06 -0800 | |
commit | 9afc7cdb5b57f6b15125d4d207baa7c61ee50287 (patch) | |
tree | 119dc36aa45c73d91aa2d25330dae25155bdf582 /src/lib/util/bitmap.c | |
parent | 723823ce111597d185f618a436d7df43144ddc9b (diff) |
fix compile on MSVC 2012 (nw)
Diffstat (limited to 'src/lib/util/bitmap.c')
-rw-r--r-- | src/lib/util/bitmap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/util/bitmap.c b/src/lib/util/bitmap.c index 4d1f8502f50..170e2dd98b7 100644 --- a/src/lib/util/bitmap.c +++ b/src/lib/util/bitmap.c @@ -49,7 +49,7 @@ inline INT32 bitmap_t::compute_rowpixels(int width, int xslop) inline void bitmap_t::compute_base(int xslop, int yslop) { m_base = m_alloc + (m_rowpixels * yslop + xslop) * (m_bpp / 8); - UINT64 aligned_base = ((reinterpret_cast<UINT64>(m_base) + (BITMAP_OVERALL_ALIGN - 1)) / BITMAP_OVERALL_ALIGN) * BITMAP_OVERALL_ALIGN; + UINT64 aligned_base = ((static_cast<UINT64>(reinterpret_cast<FPTR>(m_base)) + (BITMAP_OVERALL_ALIGN - 1)) / BITMAP_OVERALL_ALIGN) * BITMAP_OVERALL_ALIGN; m_base = reinterpret_cast<void *>(aligned_base); } |