Browse Source

lint complained

Josh Yan 10 tháng trước cách đây
mục cha
commit
657a1102fc
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      llm/llm.go

+ 1 - 1
llm/llm.go

@@ -43,7 +43,7 @@ func Quantize(infile, outfile string, ftype fileType, fn func(resp api.ProgressR
 
 	// Initialize "global" to store progress
 	store := C.malloc(C.sizeof_float)
-	defer C.free(unsafe.Pointer(store))
+	defer C.free(store)
 
 	// Initialize store value, e.g., setting initial progress to 0
 	*(*C.float)(store) = 0.0