Skip to content

Commit

Permalink
fix StatusCode.Good
Browse files Browse the repository at this point in the history
  • Loading branch information
erossignon committed Feb 23, 2014
1 parent 3734465 commit 55b1bcd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/opcua_status_code.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ function StatusCode(options) {
this.value = options.value;
this.description = options.description;
this.name = options.name;
this.highword = 0x8000 + this.value;
this.highword = this.value ? 0x8000 + this.value : 0 ;
}
StatusCode.prototype.toString = function() {
return this.name +" (0x" + this.highword.toString(16) + "0000)" ;
Expand Down

0 comments on commit 55b1bcd

Please sign in to comment.