Skip to content

Commit

Permalink
Merge pull request #1986 from genggjh/uint32
Browse files Browse the repository at this point in the history
Should use GetUint32 when convert unsigned 32-bit integer to key string.
  • Loading branch information
srderson committed Jun 24, 2016
2 parents 67bb838 + bcdb9c9 commit 852e8c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/chaincode/shim/chaincode.go
Original file line number Diff line number Diff line change
Expand Up @@ -718,7 +718,7 @@ func buildKeyString(tableName string, keys []Column) (string, error) {
case *Column_Int64:
keyString = strconv.FormatInt(key.GetInt64(), 10)
case *Column_Uint32:
keyString = strconv.FormatUint(uint64(key.GetInt32()), 10)
keyString = strconv.FormatUint(uint64(key.GetUint32()), 10)
case *Column_Uint64:
keyString = strconv.FormatUint(key.GetUint64(), 10)
case *Column_Bytes:
Expand Down

0 comments on commit 852e8c1

Please sign in to comment.