Fix issues found by FindBugs: INT_BAD_COMPARISON_WITH_SIGNED_BYTE

http://findbugs.sourceforge.net/bugDescriptions.html#INT_BAD_COMPARISON_WITH_SIGNED_BYTE

Change-Id: I144336de47c844d526d245ea5cab64c133ff3741
diff --git a/src/main/java/net/onrc/onos/core/packet/DHCP.java b/src/main/java/net/onrc/onos/core/packet/DHCP.java
index e414802..3d51cf8 100644
--- a/src/main/java/net/onrc/onos/core/packet/DHCP.java
+++ b/src/main/java/net/onrc/onos/core/packet/DHCP.java
@@ -360,7 +360,8 @@
         // minimum size 240 including magic cookie, options generally padded to 300
         int optionsLength = 0;
         for (DHCPOption option : this.options) {
-            if (option.getCode() == 0 || option.getCode() == 255) {
+            int code = option.getCode() & 0xff;
+            if (code == 0 || code == 255) {
                 optionsLength += 1;
             } else {
                 optionsLength += 2 + (int) (0xff & option.getLength());