This repository was archived by the owner on Jan 31, 2025. It is now read-only.
Commit 67f619a
committed
meson: fix undefined behavior with cdata.set10
This function has never taken a number, only a boolean. Due to leaky
python implementation details, it cast literally anything to bool
regardless, including somewhat common accidental usage of numbers. This
now prints an unavoidable deprecation notice stating that it may be
removed at any time.
Fix this to use what was always intended -- .set(), as used a few lines
down for another number.
Signed-off-by: Eli Schwartz <[email protected]>1 parent 3ed3f6a commit 67f619a
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
0 commit comments