Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
VideoLAN
libplacebo
Commits
8e535ed2
Commit
8e535ed2
authored
Mar 21, 2021
by
Niklas Haas
Browse files
dither: suppress warning with NDEBUG
parent
a374c931
Changes
1
Show whitespace changes
Inline
Side-by-side
src/dither.c
View file @
8e535ed2
...
...
@@ -108,12 +108,15 @@ static void makegauss(struct ctx *k, unsigned int sizeb)
k
->
gauss
[
XY
(
k
,
gauss_size
-
1
-
gy
,
gauss_size
-
1
-
gx
)]
=
v
;
}
}
#ifndef NDEBUG
uint64_t
total
=
0
;
for
(
index_t
c
=
0
;
c
<
k
->
size2
;
c
++
)
{
uint64_t
oldtotal
=
total
;
total
+=
k
->
gauss
[
c
];
assert
(
total
>=
oldtotal
);
}
#endif
}
static
void
setbit
(
struct
ctx
*
k
,
index_t
c
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment