diff options
author | midipix <writeonce@midipix.org> | 2015-08-15 23:09:46 +0300 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2015-09-26 11:17:07 -0400 |
commit | 58b5e3ebf46a8122f9ebbd0006a19f707f6af28f (patch) | |
tree | d446c962abc21df86b135b29b6237a45051b020b | |
parent | efc01e81a13322864775f13003a22c786dc357ed (diff) | |
download | ntapi-58b5e3ebf46a8122f9ebbd0006a19f707f6af28f.tar.bz2 ntapi-58b5e3ebf46a8122f9ebbd0006a19f707f6af28f.tar.xz |
oopsy daisy.
-rw-r--r-- | src/blitter/ntapi_blt_block.c | 2 |
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++) |