OverviewFilesCommitsIssuesDocsReleasesPeers

opencog-CompactHash commits / f440679

Fixing void arithmetic warning message
f4406791f7b434992f01ef3c2083cc41e2bda9a4
by Bob Robey <brobey@lanl.gov> · 2015-10-24T23:37:03.000Z

Changed files (3) +11 -6

HashFactory/HashFactory.c +5 -2
……@@ -31,12 +31,16 @@
3131 * This is LANL Copyright Disclosure C14043/LA-CC-14-003
3232 */
3333/**
34 * @file hash.c
34 * @file HashFactory.c
3535 * @author Peter Ahrens
3636 * @date Thu Jun 6 2013
3737 */
3838//
3939
40#ifdef _OPENMP
41#include <omp.h>
42#endif
43
4044#include "HashFactory.h"
4145#ifdef HAVE_OPENCL
4246#ifdef __APPLE_CC__
……@@ -120,7 +124,6 @@ int clFinish(int command_queue) {
120124}
121125#endif
122126#define PRIME_NUM_CHECKS 20
123typedef unsigned int uint;
124127
125128#include <math.h>
126129
HashFactory/HashFactory.cp +5 -3
……@@ -41,7 +41,7 @@
4141 */
4242#endif
4343/**
44 * @file hash.c
44 * @file HashFactory.c
4545 * @author Peter Ahrens
4646 * @date Thu Jun 6 2013
4747 */
……@@ -49,6 +49,10 @@
4949#define DELAY(x) x
5050#define STRINGIFY_(x) #x
5151#define STRINGIFY(x) STRINGIFY_(x)
52DELAY(#ifdef _OPENMP)
53DELAY(#include <omp.h>)
54DELAY(#endif)
55
5256DELAY(#include "HashFactory.h")
5357DELAY(#ifdef HAVE_OPENCL)
5458DELAY(#ifdef __APPLE_CC__)
……@@ -88,8 +92,6 @@ int clEnqueueNDRangeKernel(int command_queue, int kernel, uint work_dim, const s
8892int clFinish(int command_queue) { return 0; }
8993DELAY(#endif)
9094DELAY(#define PRIME_NUM_CHECKS 20)
91typedef unsigned int uint;
92
9395
9496DELAY(#include <math.h>)
9597#include "HashFactory.cm"
neigh2d.c +1 -1
……@@ -3315,7 +3315,7 @@ void **genmatrix(int jnum, int inum, size_t elsize)
33153315 out[0] = (void *)calloc(jnum*inum, elsize);
33163316
33173317 for (int i = 1; i < jnum; i++) {
3318 out[i] = out[i-1] + inum*elsize;
3318 out[i] = (void *)((char *)out[i-1] + inum*elsize);
33193319 }
33203320
33213321 return (out);