From eb28b0564e1ca3871438b765271b64b120d2560f Mon Sep 17 00:00:00 2001 From: Hideaki Tai Date: Wed, 15 Aug 2018 12:38:52 +0900 Subject: [PATCH] fix commit mistake --- examples/loopback_serial/max/osc-serial.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/examples/loopback_serial/max/osc-serial.js b/examples/loopback_serial/max/osc-serial.js index bb35f36..7118a78 100644 --- a/examples/loopback_serial/max/osc-serial.js +++ b/examples/loopback_serial/max/osc-serial.js @@ -64,15 +64,16 @@ function anything(a) arr = new Int32Array(buffer); arr[0] = args[i]; } + else { arr = new Int32Array(buffer); var arr_ref = new Float32Array(buffer); arr_ref[0] = args[i]; } - outs.push((arr[0] & 0xFF000000) >> 24); - outs.push((arr[0] & 0x00FF0000) >> 16); - outs.push((arr[0] & 0x0000FF00) >> 8); - outs.push((arr[0] & 0x000000FF) >> 0); + outs.push((arr[0] & 0xFF000000) >>> 24); + outs.push((arr[0] & 0x00FF0000) >>> 16); + outs.push((arr[0] & 0x0000FF00) >>> 8); + outs.push((arr[0] & 0x000000FF) >>> 0); } }