diff --git a/indra/newview/pipeline.cpp b/indra/newview/pipeline.cpp
index f903fdb570fe7dc37e9815feae41d27d09ef986e..b01e148fca301b3571793032f230cd73fbc31b02 100644
--- a/indra/newview/pipeline.cpp
+++ b/indra/newview/pipeline.cpp
@@ -6334,7 +6334,7 @@ void LLPipeline::setupHWLights(LLDrawPool* pool)
 			LLVector4 light_pos_gl(light_pos, 1.0f);
 	
 			F32 light_radius = llmax(light->getLightRadius(), 0.001f);
-            F32 size = light_radius *  sRenderDeferred ? 1.5f : 1.0f;
+            F32 size = light_radius * (sRenderDeferred ? 1.5f : 1.0f);
 
             if (size <= 0.001f)
             {
@@ -6345,7 +6345,7 @@ void LLPipeline::setupHWLights(LLDrawPool* pool)
 			F32 linatten = x / (light_radius); // % of brightness at radius
 
             // get falloff to match for forward deferred rendering lights
-            F32 falloff = light->getLightFalloff()*0.5f + sRenderDeferred ? 0.0 : 1.f;
+            F32 falloff = light->getLightFalloff() * 0.5f + (sRenderDeferred ? 0.0 : 1.f);
 
 			mHWLightColors[cur_light] = light_color;
 			LLLightState* light_state = gGL.getLight(cur_light);