Permalink
Browse files

v0.1.3

  • Loading branch information...
1 parent 2b9b400 commit 28dccaaecc26fa9925388a43836f6f2a4bae440b Gabriel Llamas committed Apr 30, 2012
Showing with 4 additions and 5 deletions.
  1. +1 −1 build/buffered-writer.js
  2. +3 −4 src/buffered-writer.js
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View
@@ -132,12 +132,11 @@ var isArray = function (array){
};
var toHexArray = function (n){
- if (n === 0) return [0x00];
var array = [];
- while (n){
- array.unshift (0xFF & n);
+ do{
+ array.unshift (n & 0xFF);
n = n >>> 8;
- }
+ }while (n);
return array;
};

0 comments on commit 28dccaa

Please sign in to comment.