summaryrefslogtreecommitdiffhomepage
path: root/src/blitter
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2015-08-15 23:09:46 +0300
committermidipix <writeonce@midipix.org>2015-09-26 11:17:07 -0400
commit58b5e3ebf46a8122f9ebbd0006a19f707f6af28f (patch)
treed446c962abc21df86b135b29b6237a45051b020b /src/blitter
parentefc01e81a13322864775f13003a22c786dc357ed (diff)
downloadntapi-58b5e3ebf46a8122f9ebbd0006a19f707f6af28f.tar.bz2
ntapi-58b5e3ebf46a8122f9ebbd0006a19f707f6af28f.tar.xz
oopsy daisy.
Diffstat (limited to 'src/blitter')
-rw-r--r--src/blitter/ntapi_blt_block.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/blitter/ntapi_blt_block.c b/src/blitter/ntapi_blt_block.c
index 879eb1b..372672c 100644
--- a/src/blitter/ntapi_blt_block.c
+++ b/src/blitter/ntapi_blt_block.c
@@ -97,7 +97,7 @@ int32_t __fastcall __ntapi_blt_obtain(
if (blitter->info.blocks_avail == 0)
return NT_STATUS_ALLOCATE_BUCKET;
- else if ((bit = *blkid % sizeof(size_t)) == 0)
+ else if ((bit = *blkid % (8*sizeof(size_t))) == 0)
return __ntapi_blt_acquire(blitter,blkid);
for (n=0,mask=(uintptr_t)-1; n<bit; n++)