Skip to content

Commit

Permalink
取值bug修复
Browse files Browse the repository at this point in the history
  • Loading branch information
sunxudong committed Apr 23, 2020
1 parent d6cf4a1 commit 32ccf06
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions serial/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ android {
defaultConfig {
minSdkVersion 15
targetSdkVersion 28
versionCode 5
versionName "1.2"
versionCode 6
versionName "1.2.1"

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles 'consumer-rules.pro'
Expand Down
2 changes: 1 addition & 1 deletion serial/src/main/java/org/sheedon/serial/Request.java
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public long backNameCode() {
private long calcBackNameCode(byte[] nameBytes) {
long code = 0;
for (byte nameByte : nameBytes) {
code = code * 256 + nameByte & 0xFF;
code = code * 256 + (nameByte & 0xFF);
}
return code;
}
Expand Down

0 comments on commit 32ccf06

Please sign in to comment.