Menu

Internal Error. MathLib::toLongNumber: input was not completely consumed: 50ms

2023-10-26
2023-10-26
  • Andreas Magnusson

    It happens in 2.12.1 but not in 1.9 so it seems like a regression. I have only tested it in these two versions.

    Here's the smallest repro I could think of that triggers it:

        auto dur = 100ms - 75ms;
        auto res = dur > 50ms ? 42 : 89;
    

    Please note that the following does not trigger the error:

        auto dur = 100ms;
        auto res = dur > 50ms ? 42 : 89;
    

    Neither does this:

        auto dur = 100ms - 75ms;
        auto res = dur > 50ms;
    

    However it will also trigger if the comparison is done in an if-statement instead of a ternary expression.

     
  • CHR

    CHR - 2023-10-26

    It looks like those examples are fixed in head.

     
  • Andreas Magnusson

    Ah, thanks, I'll see if we can upgrade.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.