Protect against call from C
This commit is contained in:
parent
7c9cdc75d3
commit
d6f856207c
|
@ -161,6 +161,7 @@ SyncBuffer.prototype.get_buffer = function(fn)
|
|||
*/
|
||||
v86util.int_log2 = function(x)
|
||||
{
|
||||
x >>>= 0;
|
||||
dbg_assert(x > 0);
|
||||
|
||||
// http://jsperf.com/integer-log2/6
|
||||
|
|
Loading…
Reference in a new issue