From 796943e02fe26b7f612bf6b7ed91d6ba14a85f4c Mon Sep 17 00:00:00 2001 From: Thomas White Date: Thu, 22 Nov 2018 11:05:29 +0100 Subject: Typecast the data from xxd --- src/diffraction-gpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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 ) { -- cgit v1.2.3