Skip to content

Commit

Permalink
Fixing mask bits potential bug
Browse files Browse the repository at this point in the history
  • Loading branch information
pomgui committed Oct 20, 2020
1 parent 9d0276d commit 3d4f2c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/messages.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ var getFacility = exports.getFacility = function(code) {
};

exports.getClass = function(code) {
return (code & CLASS_MASK) >> 30
return (code & CLASS_MASK) >> 28;
};

exports.lookupMessages = function(status, messageFile, callback){
Expand Down

0 comments on commit 3d4f2c6

Please sign in to comment.