Subject: 29.0.60; c-ts-mode: Fails to indent enum block emitting a warning

From: Mohammed Sadiq <[email-masked]>
Date: Wed, 18 Jan 2023 19:39:47 +0530

enums are not indented with select -> TAB, Example:

enum {
PROP_0,
PROP_NAME,
N_PROPS
};

When trying to indent, I get the following warning in *Messages*:
indent-line-to: Wrong type argument: wholenump, -2

In GNU Emacs 29.0.60 (build 8, x86_64-pc-linux-gnu, GTK+ Version
  3.24.36, cairo version 1.16.0) of 2023-01-18 built on purism
Repository revision: 1798ff5a6636d6b34d23ab2dadb966e94cc57467
Repository branch: emacs-29
Windowing system distributor 'The X.Org Foundation', version 
11.0.12101005
System Description: Debian GNU/Linux bookworm/sid