1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2024-12-28 09:05:22 +00:00
webvirtcloud/static/js/novnc/core/util/int.js

16 lines
326 B
JavaScript
Raw Normal View History

2020-08-11 12:05:09 +00:00
/*
* noVNC: HTML5 VNC client
* Copyright (C) 2020 The noVNC Authors
* Licensed under MPL 2.0 (see LICENSE.txt)
*
* See README.md for usage and integration instructions.
*/
export function toUnsigned32bit(toConvert) {
return toConvert >>> 0;
}
export function toSigned32bit(toConvert) {
return toConvert | 0;
}