diff options
author | Brian Paul <[email protected]> | 2003-01-19 15:27:37 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2003-01-19 15:27:37 +0000 |
commit | 47ecdf55daa836b13f049fd28d0e2263dff8884f (patch) | |
tree | b382e4e95f10b8d01254d3da5a072b6cb93a2200 /src | |
parent | 5e9dd0407719be20b119259a3f4aeae1a0a1c8c1 (diff) |
add some casts
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/main/imports.c | 4 | ||||
-rw-r--r-- | src/mesa/main/nvfragparse.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/mesa/main/imports.c b/src/mesa/main/imports.c index bb836dd8327..9816936f164 100644 --- a/src/mesa/main/imports.c +++ b/src/mesa/main/imports.c @@ -1,4 +1,4 @@ -/* $Id: imports.c,v 1.29 2003/01/14 03:05:38 brianp Exp $ */ +/* $Id: imports.c,v 1.30 2003/01/19 15:27:38 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -360,7 +360,7 @@ char * _mesa_strdup( const char *s ) { int l = _mesa_strlen(s); - char *s2 = _mesa_malloc(l + 1); + char *s2 = (char *) _mesa_malloc(l + 1); if (s2) _mesa_strcpy(s2, s); return s2; diff --git a/src/mesa/main/nvfragparse.c b/src/mesa/main/nvfragparse.c index c4035f00b1a..641afa46d52 100644 --- a/src/mesa/main/nvfragparse.c +++ b/src/mesa/main/nvfragparse.c @@ -1,4 +1,4 @@ -/* $Id: nvfragparse.c,v 1.1 2003/01/14 04:55:46 brianp Exp $ */ +/* $Id: nvfragparse.c,v 1.2 2003/01/19 15:27:37 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -191,7 +191,7 @@ MatchInstruction(const char *token) return result; } } - result.opcode = -1; + result.opcode = (enum fp_opcode) -1; return result; } |