mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Fixed a comment.
This commit is contained in:
parent
29c2347063
commit
b77877aea8
1 changed files with 3 additions and 2 deletions
|
@ -434,7 +434,7 @@ public class Database {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Free an allocate block.
|
* Free an allocated block.
|
||||||
*
|
*
|
||||||
* @param offset
|
* @param offset
|
||||||
*/
|
*/
|
||||||
|
@ -444,9 +444,10 @@ public class Database {
|
||||||
long block = offset - BLOCK_HEADER_SIZE;
|
long block = offset - BLOCK_HEADER_SIZE;
|
||||||
Chunk chunk = getChunk(block);
|
Chunk chunk = getChunk(block);
|
||||||
int blocksize = - chunk.getShort(block);
|
int blocksize = - chunk.getShort(block);
|
||||||
if (blocksize < 0)
|
if (blocksize < 0) {
|
||||||
// already freed
|
// already freed
|
||||||
throw new CoreException(new Status(IStatus.ERROR, CCorePlugin.PLUGIN_ID, 0, "Already Freed", new Exception())); //$NON-NLS-1$
|
throw new CoreException(new Status(IStatus.ERROR, CCorePlugin.PLUGIN_ID, 0, "Already Freed", new Exception())); //$NON-NLS-1$
|
||||||
|
}
|
||||||
addBlock(chunk, blocksize, block);
|
addBlock(chunk, blocksize, block);
|
||||||
freed += blocksize;
|
freed += blocksize;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue