FreeBSD Bugzilla – Attachment 11550 Details for
Bug 22710
snake_saver and star_saver fail to compile with -Wall -Werror
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 1.11 KB, created by
gordont
on 2000-11-09 02:10:01 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
gordont
Created:
2000-11-09 02:10:01 UTC
Size:
1.11 KB
patch
obsolete
>--- snake_saver.c.orig Wed Nov 8 17:59:25 2000 >+++ snake_saver.c Wed Nov 8 17:59:49 2000 >@@ -89,7 +89,7 @@ > scp->xsize : -scp->xsize); > for (f=0; f< messagelen; f++) > savs[f] = scp->xpos + scp->ypos*scp->xsize; >- sc_vtb_putc(&scp->scr, savs[0], sc->scr_map[*save], >+ sc_vtb_putc(&scp->scr, savs[0], sc->scr_map[(int) *save], > (FG_LIGHTGREY | BG_BLACK) << 8); > blanked = 1; > } >@@ -111,7 +111,7 @@ > diry = -diry; > savs[0] += dirx + diry; > for (f=messagelen-1; f>=0; f--) >- sc_vtb_putc(&scp->scr, savs[f], sc->scr_map[save[f]], >+ sc_vtb_putc(&scp->scr, savs[f], sc->scr_map[(int) save[f]], > (FG_LIGHTGREY | BG_BLACK) << 8); > } > else { >--- star_saver.c.orig Wed Nov 8 18:05:31 2000 >+++ star_saver.c Wed Nov 8 18:05:52 2000 >@@ -99,7 +99,7 @@ > } > cell = random() % NUM_STARS; > sc_vtb_putc(&scp->scr, stars[cell][0], >- sc->scr_map[pattern[stars[cell][1]]], >+ sc->scr_map[(int) pattern[stars[cell][1]]], > colors[random()%sizeof(colors)] << 8); > if ((stars[cell][1]+=(random()%4)) >= sizeof(pattern)-1) { > stars[cell][0] = random() % (scp->xsize*scp->ysize);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 22710
: 11550