Skip to content

Conversation

@kraktus
Copy link
Member

@kraktus kraktus commented Jan 6, 2024

Fixes #14393

The issuse was created #14277 which itself was introduced by 4a54a23. More specifically a76f4c3 and 0649bc5.

It was caused by changing to looseH which cannot handle a number, and which tried to re-unify 0 and null as the same value, which is not possible in this case. I rolled back to the old version.

I chose to use the original h function, so had to revert the looseH alias. It's more code but felt cleaner than aliasing h.

Tested for:

  • rated
  • unrated
  • streak

Fixes lichess-org#14393

The issuse was created lichess-org#14277 which itself was introduced by 4a54a23. More specifically a76f4c3 and 0649bc5.

It was caused by changing to `looseH` which cannot handle a number, and which tried to re-unify 0 and null as the same value, which is not possible in this case. I rolled back to the old version.

I chose to use the original `h` function, so had to revert the `looseH` alias. It's more code but felt cleaner than aliasing h.

Tested for:
- rated
- unrated
- streak
@ornicar ornicar merged commit 9d02546 into lichess-org:master Jan 7, 2024
@ornicar
Copy link
Collaborator

ornicar commented Jan 7, 2024

I merged because the fix is needed. But if we start using both vanilla h and custom looseH in the code then I think it becomes more confusing than it is useful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Undefined value in puzzle streak

2 participants