Explorar o código

fix type

(cherry picked from commit 08ea22738e815efc1a2cfbae9e5c51ef7305008c)
Samuel Thibault %!s(int64=7) %!d(string=hai) anos
pai
achega
454c356a96
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      socl/src/cl_getcontextinfo.c

+ 2 - 2
socl/src/cl_getcontextinfo.c

@@ -2,7 +2,7 @@
  *
  * Copyright (C) 2011                                     Inria
  * Copyright (C) 2012,2017                                CNRS
- * Copyright (C) 2010-2011                                Université de Bordeaux
+ * Copyright (C) 2010-2011,2018                           Université de Bordeaux
  *
  * StarPU is free software; you can redistribute it and/or modify
  * it under the terms of the GNU Lesser General Public License as published by
@@ -33,7 +33,7 @@ soclGetContextInfo(cl_context       context,
 	{
 		INFO_CASE(CL_CONTEXT_REFERENCE_COUNT, context->_entity.refs);
 		INFO_CASE_EX(CL_CONTEXT_DEVICES, context->devices, context->num_devices * sizeof(cl_device_id));
-		INFO_CASE_EX(CL_CONTEXT_PROPERTIES, context->properties, context->num_properties * sizeof(cl_device_id));
+		INFO_CASE_EX(CL_CONTEXT_PROPERTIES, context->properties, context->num_properties * sizeof(cl_context_properties));
 	default:
 		return CL_INVALID_VALUE;
 	}