Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
Conflicts:
	src/ByteArrayBase.ts
  • Loading branch information
Nidin Vinayakan committed Jan 16, 2015
2 parents 6c47554 + 292ff96 commit 4443d25
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
1 change: 0 additions & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
var gulp = require('gulp');
var foreach = require('gulp-foreach');
var shell = require('gulp-shell');
var cc = require('gulp-closure-compiler');
var sourcemaps = require('gulp-sourcemaps');
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
},
"homepage": "https://github.com/nidin/TS-ByteArray",
"devDependencies": {
"typescript":"latest",
"gulp":"3.8.10",
"gulp-shell":"*",
"gulp-closure-compiler":"*",
Expand Down
6 changes: 3 additions & 3 deletions src/ByteArrayBase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -396,10 +396,10 @@ module nid.utils
var str:string = "";
var num:number=0;
while(this.bytesAvailable > 0) {
var byte:number = this.data.getUint8(this.position++);
var _byte:number = this.data.getUint8(this.position++);
num++;
if(byte != 0){
str += String.fromCharCode(byte);
if(_byte != 0){
str += String.fromCharCode(_byte);
}else{
if(keepEvenByte && num % 2 != 0){
this.position++;
Expand Down

0 comments on commit 4443d25

Please sign in to comment.