Changeset 92 for Include/basic


Ignore:
Timestamp:
Feb 12, 2007, 11:47:19 AM (18 years ago)
Author:
konisi
Message:

basicフォルダ内の整備、掲示板にエラーを報告したもの以外は型チェック終了しました。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Include/basic/function.sbp

    r57 r92  
    139139Function _System_SetSign(x As Double, isNegative As Long) As Double
    140140#ifdef _WIN64
    141     SetQWord(VarPtr(CopySign), (GetQWord(VarPtr(x)) And &h7fffffffffffffff) Or (isNegative << 63))
     141    SetQWord(AddressOf(CopySign), (GetQWord(VarPtr(x)) And &h7fffffffffffffff) Or (isNegative << 63))
    142142#else
    143     SetDWord(VarPtr(CopySign), GetDWord(VarPtr(x)))
    144     SetDWord(VarPtr(CopySign) + SizeOf (DWord), GetQWord(VarPtr(x) + SizeOf (DWord)) And &h7fffffff Or (isNegative << 31))
     143    SetDWord(AddressOf(CopySign), GetDWord(VarPtr(x)))
     144    SetDWord(AddressOf(CopySign) + SizeOf (DWord), GetQWord(VarPtr(x) + SizeOf (DWord)) And &h7fffffff Or (isNegative << 31))
    145145#endif
    146146End Function
     
    175175
    176176Function CDWord(num As Double) As DWord
    177     CDWord=num
     177    CDWord=num As DWord
    178178End Function
    179179
    180180Function CInt(number As Double) As Long
    181     CInt=number
     181    CInt=number As Long
    182182End Function
    183183
    184184Function CSng(number As Double) As Single
    185     CSng=number
     185    CSng=number As Single
    186186End Function
    187187
     
    279279
    280280Function Sin(number As Double) As Double
    281     Sin = Math.Sin(number)
     281    Sin = Math.Sign(number)
    282282End Function
    283283
     
    322322    p[0] = 0
    323323    nan = _System_GetInf(/*x,*/ FALSE)
    324     IsNaNOrInf = (memcmp(p, VarPtr(nan), SizeOf (Double)) = 0)
     324    IsNaNOrInf = (memcmp(p As BytePtr, VarPtr(nan), SizeOf (Double)) = 0)
    325325End Function
    326326
Note: See TracChangeset for help on using the changeset viewer.