1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-04-10 15:48:06 -05:00

do_bidi: remove a pointless assert.

When the textlen parameter became a size_t, it became unsigned, so it
stopped being useful to assert() its non-negativity.

Spotted by Coverity. Harmless, but ordinary compilers have been known
to emit annoying warnings about that kind of thing too, so it's worth
fixing just to avoid noise.
This commit is contained in:
Simon Tatham 2022-01-29 17:58:33 +00:00
parent ca62d67699
commit 1f6fa876e3

View File

@ -3602,7 +3602,6 @@ void do_bidi(BidiContext *ctx, bidi_char *text, size_t textlen)
#ifdef REMOVE_FORMATTING_CHARACTERS
abort(); /* can't use the standard algorithm in a live terminal */
#else
assert(textlen >= 0);
do_bidi_new(ctx, text, textlen);
#endif
}