mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 00:46:02 +08:00
Fix some compiler warnings. Minor formatting cleanup.
This commit is contained in:
@@ -361,12 +361,12 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
|
||||
public LSL_Integer llAbs(int i)
|
||||
{
|
||||
// changed to replicate LSL behaviour whereby minimum int value is returned untouched.
|
||||
// changed to replicate LSL behaviour whereby minimum int value is returned untouched.
|
||||
m_host.AddScriptLPS(1);
|
||||
if(i == Int32.MinValue)
|
||||
return i;
|
||||
if (i == Int32.MinValue)
|
||||
return i;
|
||||
else
|
||||
return (int)Math.Abs(i);
|
||||
return (int)Math.Abs(i);
|
||||
}
|
||||
|
||||
public LSL_Float llFabs(double f)
|
||||
|
||||
Reference in New Issue
Block a user