summaryrefslogtreecommitdiffstats
path: root/pcilib/datacpy.c
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2015-11-20 18:26:29 +0100
committerSuren A. Chilingaryan <csa@suren.me>2015-11-20 18:26:29 +0100
commitbba9c619c79175b58359116b52a889e30a632d07 (patch)
tree6da3898d50880e96f2afa5d5139bd16263fccf42 /pcilib/datacpy.c
parentfe5bca8604e8c381d3fe2cce3073dd6602d016d1 (diff)
downloadpcitool-bba9c619c79175b58359116b52a889e30a632d07.tar.gz
pcitool-bba9c619c79175b58359116b52a889e30a632d07.tar.bz2
pcitool-bba9c619c79175b58359116b52a889e30a632d07.tar.xz
pcitool-bba9c619c79175b58359116b52a889e30a632d07.zip
64-bit access to BAR memory
Diffstat (limited to 'pcilib/datacpy.c')
-rw-r--r--pcilib/datacpy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pcilib/datacpy.c b/pcilib/datacpy.c
index 15dfbe9..27bff11 100644
--- a/pcilib/datacpy.c
+++ b/pcilib/datacpy.c
@@ -81,7 +81,7 @@ void *pcilib_datacpy(void * dst, void const * src, uint8_t size, size_t n, pcili
size_t pos = 0;
pcilib_datacpy_routine_t routine;
- assert((size)&&(size < 64));
+ assert((size)&&(size <= 8));
while (size >>= 1) ++pos;
routine = pcilib_datacpy_routines[pos];