aboutsummaryrefslogtreecommitdiff
path: root/src/sgp_dd.c
diff options
context:
space:
mode:
authorDouglas Gilbert <dgilbert@interlog.com>2017-12-09 06:26:14 +0000
committerDouglas Gilbert <dgilbert@interlog.com>2017-12-09 06:26:14 +0000
commited9ccf29c5bc66e5212996aee4bbb1496d2d3108 (patch)
treeaa0c53f299972be15ed469d03536d076f7e049ee /src/sgp_dd.c
parente2be6d218fe1f8096b511e3fcbca042002063db3 (diff)
downloadsg3_utils-ed9ccf29c5bc66e5212996aee4bbb1496d2d3108.tar.gz
sg_lib: fix sg_memalign() code in the non posix_memalign() case
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@736 6180dd3e-e324-4e3e-922d-17de1ae2f315
Diffstat (limited to 'src/sgp_dd.c')
-rw-r--r--src/sgp_dd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sgp_dd.c b/src/sgp_dd.c
index e1545552..f6cf2a6b 100644
--- a/src/sgp_dd.c
+++ b/src/sgp_dd.c
@@ -60,7 +60,7 @@
#include "sg_pr2serr.h"
-static const char * version_str = "5.57 20171023";
+static const char * version_str = "5.58 20171209";
#define DEF_BLOCK_SIZE 512
#define DEF_BLOCKS_PER_TRANSFER 128
@@ -526,7 +526,7 @@ read_write_thread(void * v_clp)
#endif
if (NULL == (rep->alloc_bp = (unsigned char *)malloc(sz + psz)))
err_exit(ENOMEM, "out of memory creating user buffers\n");
- rep->buffp = (unsigned char *)(((uintptr_t)rep->alloc_bp + psz - 1) &
+ rep->buffp = (unsigned char *)(((sg_uintptr_t)rep->alloc_bp + psz - 1) &
(~(psz - 1)));
/* Follow clp members are constant during lifetime of thread */
rep->bs = clp->bs;