quick and dirty fix to make it compile and (seemingly) work

on 32 bits systems, it needs more testing though
This commit is contained in:
Ciccio87
2013-08-17 07:26:44 +02:00
parent cc47ec25ca
commit 9ae0d5e656
2 changed files with 4 additions and 4 deletions

View File

@ -124,6 +124,6 @@ int blacklist_init_from_files(char *whitelist_filename, char *blacklist_filename
constraint_optimize(constraint);
uint64_t allowed = blacklist_count_allowed();
log_debug("blacklist", "%lu addresses allowed to be scanned (%0.0f%% of address space)",
allowed, allowed*100./(1L << 32));
allowed, allowed*100./(1L << (int)sizeof(long)*4));
return 0;
}