mirror of
https://github.com/BlackLight/Snort_AIPreproc.git
synced 2024-11-27 22:25:12 +01:00
Fixing a pointer cast for 64-bits archs
This commit is contained in:
parent
51b2712325
commit
b8f9c7fb8a
1 changed files with 3 additions and 3 deletions
|
@ -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,
|
/* Yeah, dirty horrible way for avoiding some SEGFAULTs for invalid memory access,
|
||||||
* but it's the only working way on some 64-bits architectures */
|
* but it's the only working way on some 64-bits architectures */
|
||||||
if ( km->clusters < 0x100 )
|
if ((unsigned long int) km->clusters < 0x100 )
|
||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( km->clusters[l] < 0x100 )
|
if ((unsigned long int) km->clusters[l] < 0x100 )
|
||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( km->clusters[l][m] < 0x100 )
|
if ((unsigned long int) km->clusters[l][m] < 0x100 )
|
||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue