Skip to content

Commit

Permalink
Fixed setting Local to C equivalent of NULL in enqueue_nd_range function
Browse files Browse the repository at this point in the history
  • Loading branch information
kbmurali committed Apr 27, 2014
1 parent 5a28230 commit 6992120
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions c_src/cl_nif.c
Expand Up @@ -4103,13 +4103,11 @@ static ERL_NIF_TERM ecl_enqueue_nd_range_kernel(ErlNifEnv* env, int argc,
if (!get_bool(env, argv[5], &want_event))
return enif_make_badarg(env);

if (work_dim == 0)
{
if (work_dim == 0){
return enif_make_badarg(env);
}

if( temp_dim > 0 && work_dim != temp_dim )
{
if( temp_dim > 0 && work_dim != temp_dim ){
return enif_make_badarg(env);
}

Expand Down

0 comments on commit 6992120

Please sign in to comment.