Thanks to visit codestin.com
Credit goes to github.com

Skip to content

lpython_bit_length() fails for negative numbers in release mode #1836

Open
@ubaidsk

Description

@ubaidsk

On latest main, compiling using the following commands on Mac M1

./build0.sh
cmake -DWITH_FMT=yes -DCMAKE_CXX_FLAGS_RELEASE="-Wall -Wextra -O3 -funroll-loops -DNDEBUG" -DWITH_LLVM=yes .
cmake --build . -j16

I am experiencing the following:

$ python integration_tests/test_bit_length.py               
7
3
7
7
$ lpython integration_tests/test_bit_length.py               
AssertionError

Originally posted by @Shaikh-Ubaid in #1835 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions