Browse Source

Merge branch 'bifury' into bfgminer

Luke Dashjr 12 years ago
parent
commit
fe9c077104
1 changed files with 1 additions and 1 deletions
  1. 1 1
      driver-bifury.c

+ 1 - 1
driver-bifury.c

@@ -37,7 +37,7 @@ ssize_t bifury_write(const struct cgpu_info * const dev, const void * const buf,
 	const int fd = dev->device_fd;
 	if (opt_dev_protocol)
 	{
-		const size_t psz = (((const char*)buf)[count-1] == '\n') ? (count - 1) : count;
+		const int psz = (((const char*)buf)[count-1] == '\n') ? (count - 1) : count;
 		applog(LOG_DEBUG, "%s: DEVPROTO: SEND %.*s", dev->dev_repr, psz, (const char*)buf);
 	}
 	return write(fd, buf, count);