OSDN Git Service

Misc
authora <a@b.c>
Sun, 4 Sep 2016 13:18:08 +0000 (15:18 +0200)
committera <a@b.c>
Sun, 4 Sep 2016 13:18:08 +0000 (15:18 +0200)
src/curses.c

index 20c42ab..fe6f449 100644 (file)
@@ -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);