summaryrefslogtreecommitdiffstatshomepage
path: root/src
diff options
context:
space:
mode:
author Andrew Gardner <andrew.gardner@liu.se>2015-08-18 11:09:24 +0200
committer Andrew Gardner <andrew.gardner@liu.se>2015-08-18 11:09:24 +0200
commit16c5f6c74235d424f1e1a083563d04e0c09d1f8d (patch)
treea9e41e9388752623061f4fbb7a5c4b996cd0e4d3 /src
parent4367ecbb3c51dc974ee5dc4f39aa1535a848324c (diff)
A band-aid fix to a potentially uninitialized variable (nw).
The chances of this actually causing problems is very, very small, but gcc 4.4.7 complains about it, so I may as well patch it up. A better fix may be to make rgbaint_t's default constructor initialize its members, but this could be slow (eg. if creating these happens often in an inner loop), so for now I'm just patching what's being complained about.
Diffstat (limited to 'src')
-rw-r--r--src/mame/video/rdptpipe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mame/video/rdptpipe.c b/src/mame/video/rdptpipe.c
index d574cd13133..c8dd625f7a0 100644
--- a/src/mame/video/rdptpipe.c
+++ b/src/mame/video/rdptpipe.c
@@ -302,7 +302,7 @@ void n64_texture_pipe_t::cycle_linear_lerp(color_t* TEX, color_t* prev, INT32 SS
bool upper = ((stfrac.get_r32() + stfrac.get_b32()) >= 0x20);
- rgbaint_t invstf;
+ rgbaint_t invstf(0);
if (upper)
{
invstf.set(stfrac);