mirror of
https://github.com/zeek/zeek.git
synced 2025-10-05 16:18:19 +00:00
Revert "Fix for OS X 10.5 compile error wrt llabs()"
This reverts commit 3f6aa735e9
.
Using abs() does not work if the integer is >2^32 (or <2^32).
Will add a new fix in next commit.
This commit is contained in:
parent
2f7fa3470b
commit
104c7da205
3 changed files with 1 additions and 33 deletions
|
@ -515,11 +515,7 @@ Val* Val::SizeVal() const
|
|||
{
|
||||
switch ( type->InternalType() ) {
|
||||
case TYPE_INTERNAL_INT:
|
||||
#ifdef DARWIN_NO_LLABS
|
||||
return new Val(abs(val.int_val), TYPE_COUNT);
|
||||
#else
|
||||
return new Val(llabs(val.int_val), TYPE_COUNT);
|
||||
#endif
|
||||
|
||||
case TYPE_INTERNAL_UNSIGNED:
|
||||
return new Val(val.uint_val, TYPE_COUNT);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue