Use missingEncodedBlocksCount directly instead of "-1" workaround in missingEncodedBlocks[]

Makes Code more readable
This commit is contained in:
Krishna Srinivas committed 2015-07-28 16:56:06 +05:30
1 parent 55d22fa8d6
commit 1ea91d2fa2
3 files changed
+10 -9

No files matched your search

+3
View File
@@ -25,6 +25,9 @@ import (
// intSlice2CIntArray converts Go int slice to C int array
func intSlice2CIntArray(srcErrList []int) *C.int32_t {
if len(srcErrList) == 0 {
return (*C.int32_t)(unsafe.Pointer(nil))
}
var sizeErrInt = int(unsafe.Sizeof(srcErrList[0]))
switch sizeInt {
case sizeErrInt: