Subversion Repositories Projects

Rev

Rev 159 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 159 Rev 162
Line 98... Line 98...
98
 
98
 
99
long ToolBox::Data2Long(int *Data , int Start, bool is_signed)
99
long ToolBox::Data2Long(int *Data , int Start, bool is_signed)
100
{
100
{
Line -... Line 101...
-
 
101
    long Out = (Data[Start+3]<<24) | (Data[Start+2]<<16) | (Data[Start+1]<<8) | (Data[Start+0]);
-
 
102
 
-
 
103
    if ((Out > 32767) && (is_signed))
101
    long Out = (Data[Start+3]<<24) | (Data[Start+2]<<16) | (Data[Start+1]<<8) | (Data[Start+0]);
104
      Out = Out;
102
 
105
 
Line 103... Line 106...
103
    return Out;
106
    return Out;
104
}
107
}