Browse Source

Merge branch 'monarch_201405' into bfgminer

Luke Dashjr 11 years ago
parent
commit
630e9d4182
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lowl-pci.c

+ 1 - 1
lowl-pci.c

@@ -158,7 +158,7 @@ const void *lowl_pci_get_data_from_words(struct lowl_pci_handle * const lph, voi
 	const off_t offset8  = offset % 4;
 	const size_t words = (sz + offset8 + 3) / 4;
 	const uint32_t * const wdata = lowl_pci_get_words(lph, buf, words, bar, offset32);
-	swap32tobe(buf, wdata, words);
+	swap32tobe((uint32_t *)buf, wdata, words);
 	return &buf[offset8];
 }