summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/util/bitmap.c
diff options
context:
space:
mode:
author Oliver Stöneberg <oliverst@online.de>2015-01-31 23:36:03 +0100
committer Oliver Stöneberg <oliverst@online.de>2015-01-31 23:36:03 +0100
commit22b90a3374a5bd6ad17341e463bbc4463fc0e326 (patch)
tree06396d61eff61f51b46c3b7231e3046893827884 /src/lib/util/bitmap.c
parentf47544a1b7b444b7abd05254b1d219f86ec1fb21 (diff)
Revert "fix compile on MSVC 2012 (nw)"
This reverts commit 9afc7cdb5b57f6b15125d4d207baa7c61ee50287.
Diffstat (limited to 'src/lib/util/bitmap.c')
-rw-r--r--src/lib/util/bitmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/util/bitmap.c b/src/lib/util/bitmap.c
index 170e2dd98b7..4d1f8502f50 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 = ((static_cast<UINT64>(reinterpret_cast<FPTR>(m_base)) + (BITMAP_OVERALL_ALIGN - 1)) / BITMAP_OVERALL_ALIGN) * BITMAP_OVERALL_ALIGN;
+ UINT64 aligned_base = ((reinterpret_cast<UINT64>(m_base) + (BITMAP_OVERALL_ALIGN - 1)) / BITMAP_OVERALL_ALIGN) * BITMAP_OVERALL_ALIGN;
m_base = reinterpret_cast<void *>(aligned_base);
}