/**
* calculated the dual logarithmus of |value|
*/
-static unsigned log2(long value) {
+static unsigned log2abs(long value) {
unsigned res = 0;
if (value < 0)
if (mode_is_int(mode)) {
tv = get_Const_tarval(node);
- bits = log2(get_tarval_long(tv));
+
+ /* FIXME: */
+ if (! tarval_is_long(tv))
+ return;
+
+ bits = log2abs(get_tarval_long(tv));
if (bits > ARR_SIZE(status->const_info.int_bits_count))
bits = ARR_SIZE(status->const_info.int_bits_count);