[chocolate-doom] 37/42: Cannot do arithmetic on void pointers in standard C

Jonathan Dowland jmtd at moszumanska.debian.org
Mon Jan 30 15:06:53 UTC 2017


This is an automated email from the git hooks/post-receive script.

jmtd pushed a commit to annotated tag chocolate-doom-0.1.0
in repository chocolate-doom.

commit 6a9e5dd7e7fef89fb7dfe5ee9ac502027bdcb98c
Author: Simon Howard <fraggle at gmail.com>
Date:   Sun Oct 9 16:42:46 2005 +0000

    Cannot do arithmetic on void pointers in standard C
    
    Subversion-branch: /trunk/chocolate-doom
    Subversion-revision: 181
---
 textscreen/txt_main.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/textscreen/txt_main.c b/textscreen/txt_main.c
index 65ee3ac..530e4bd 100644
--- a/textscreen/txt_main.c
+++ b/textscreen/txt_main.c
@@ -1,7 +1,7 @@
 // Emacs style mode select   -*- C++ -*- 
 //-----------------------------------------------------------------------------
 //
-// $Id: txt_main.c 146 2005-10-02 03:16:03Z fraggle $
+// $Id: txt_main.c 181 2005-10-09 16:42:46Z fraggle $
 //
 // Copyright(C) 1993-1996 Id Software, Inc.
 // Copyright(C) 2005 Simon Howard
@@ -22,6 +22,9 @@
 // 02111-1307, USA.
 //
 // $Log$
+// Revision 1.2  2005/10/09 16:42:46  fraggle
+// Cannot do arithmetic on void pointers in standard C
+//
 // Revision 1.1  2005/10/02 03:16:03  fraggle
 // Text mode emulation code
 //
@@ -117,7 +120,8 @@ static inline void UpdateCharacter(int x, int y)
 
     p = &int10_font_16[character * CHAR_H];
 
-    s = screen->pixels + (y * CHAR_H * screen->pitch) + (x * CHAR_W);
+    s = ((unsigned char *) screen->pixels) 
+          + (y * CHAR_H * screen->pitch) + (x * CHAR_W);
 
     for (y1=0; y1<CHAR_H; ++y1)
     {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/chocolate-doom.git



More information about the Pkg-games-commits mailing list