aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2018-11-22 11:05:29 +0100
committerThomas White <taw@physics.org>2018-11-22 13:17:05 +0100
commit796943e02fe26b7f612bf6b7ed91d6ba14a85f4c (patch)
tree419f81292510205dd8d048531f7f486ed1358cb6
parent7a5c4bf8792a3d7aaaa72b37fb683c22134f3a39 (diff)
Typecast the data from xxd
-rw-r--r--src/diffraction-gpu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/diffraction-gpu.c b/src/diffraction-gpu.c
index 79b5443d..9cbfdf33 100644
--- a/src/diffraction-gpu.c
+++ b/src/diffraction-gpu.c
@@ -531,7 +531,7 @@ struct gpu_context *setup_gpu(int no_sfac,
}
free(flags_ptr);
- gctx->prog = load_program_from_string(data_diffraction_cl,
+ gctx->prog = load_program_from_string((char *)data_diffraction_cl,
data_diffraction_cl_len, gctx->ctx,
dev, &err, cflags, insert_stuff);
if ( err != CL_SUCCESS ) {