OSDN Git Service
(root)
/
pinky-bar
/
pinky-bar.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c07c1f8
)
Misc
author
a
<a@b.c>
Sun, 4 Sep 2016 13:18:08 +0000
(15:18 +0200)
committer
a
<a@b.c>
Sun, 4 Sep 2016 13:18:08 +0000
(15:18 +0200)
src/curses.c
patch
|
blob
|
history
diff --git
a/src/curses.c
b/src/curses.c
index
20c42ab
..
fe6f449
100644
(file)
--- a/
src/curses.c
+++ b/
src/curses.c
@@
-93,9
+93,9
@@
int main(void) {
return EXIT_FAILURE;
}
start_color();
- for (x = 0; x < COLORS; x++
) {
- for (z = 0; z < COLORS; z++
) {
- init_pair((
x * COLORS) + z
, x, z);
+ for (x = 0; x < COLORS; x++) {
+ for (z = 0; z < COLORS; z++) {
+ init_pair((
int16_t)((x * COLORS) + z)
, x, z);
}
}
pair_content(color_pair, &fg, &bg);