Skip to content

Commit

Permalink
fix for port showing up as negative
Browse files Browse the repository at this point in the history
  • Loading branch information
alshabib committed Jan 13, 2015
1 parent 19ba9fc commit 820eaee
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ public static OFPort ofShort(final short portNumber) {
if (portNumber < 0 && portNumber > OFPP_MAX_SHORT)
throw new IllegalArgumentException("Unknown special port number: "
+ portNumber);
return new OFPort(portNumber);
return new OFPort(U16.f(portNumber));
}
}

Expand Down

0 comments on commit 820eaee

Please sign in to comment.