From b8f9c7fb8abafab79730b50c897cd34d96f49c6c Mon Sep 17 00:00:00 2001 From: BlackLight Date: Tue, 15 Feb 2011 17:32:28 +0100 Subject: [PATCH] Fixing a pointer cast for 64-bits archs --- neural_cluster.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/neural_cluster.c b/neural_cluster.c index 90945a8..f43e0c7 100644 --- a/neural_cluster.c +++ b/neural_cluster.c @@ -117,17 +117,17 @@ __AI_neural_clusters_to_xml ( kmeans_t *km, AI_alerts_per_neuron *alerts_per_neu { /* Yeah, dirty horrible way for avoiding some SEGFAULTs for invalid memory access, * but it's the only working way on some 64-bits architectures */ - if ( km->clusters < 0x100 ) + if ((unsigned long int) km->clusters < 0x100 ) { continue; } - if ( km->clusters[l] < 0x100 ) + if ((unsigned long int) km->clusters[l] < 0x100 ) { continue; } - if ( km->clusters[l][m] < 0x100 ) + if ((unsigned long int) km->clusters[l][m] < 0x100 ) { continue; }