Skip to content

Commit f0af970

Browse files
authored
Remove superfluous casts in TLSF (#2543)
1 parent a7d10ba commit f0af970

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

std/assembly/rt/tlsf.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -496,10 +496,10 @@ export function allocateBlock(root: Root, size: usize): Block {
496496
if (DEBUG) assert(block); // must be found now
497497
}
498498
if (DEBUG) assert((block.mmInfo & ~TAGS_MASK) >= payloadSize); // must fit
499-
removeBlock(root, <Block>block);
500-
prepareBlock(root, <Block>block, payloadSize);
499+
removeBlock(root, block);
500+
prepareBlock(root, block, payloadSize);
501501
if (isDefined(ASC_RTRACE)) onalloc(block);
502-
return <Block>block;
502+
return block;
503503
}
504504

505505
/** Reallocates a block to the specified size. */

0 commit comments

Comments
 (0)