mirror of
https://gitee.com/const-zpc/param.git
synced 2025-01-16 04:12:52 +08:00
🐞 fix: 调整无符号参数的赋值(没啥影响)
This commit is contained in:
parent
6e05f60dc6
commit
e73e8cb653
@ -581,19 +581,19 @@ static cotParamCheckRet_e ValidateRangeByVoid(const cotParamInfo_t *pParam, cons
|
||||
break;
|
||||
#endif
|
||||
case COT_PARAM_UINT8:
|
||||
uValue.s64val = *(COT_PARAM_UINT8_T *)pval;
|
||||
uValue.u64val = *(COT_PARAM_UINT8_T *)pval;
|
||||
break;
|
||||
|
||||
case COT_PARAM_UINT16:
|
||||
uValue.s64val = *(COT_PARAM_UINT16_T *)pval;
|
||||
uValue.u64val = *(COT_PARAM_UINT16_T *)pval;
|
||||
break;
|
||||
|
||||
case COT_PARAM_UINT32:
|
||||
uValue.s64val = *(COT_PARAM_UINT32_T *)pval;
|
||||
uValue.u64val = *(COT_PARAM_UINT32_T *)pval;
|
||||
break;
|
||||
#if COT_PARAM_USE_64_BIT_LENGTH
|
||||
case COT_PARAM_UINT64:
|
||||
uValue.s64val = *(COT_PARAM_UINT64_T *)pval;
|
||||
uValue.u64val = *(COT_PARAM_UINT64_T *)pval;
|
||||
break;
|
||||
#endif
|
||||
case COT_PARAM_FLOAT:
|
||||
|
Loading…
x
Reference in New Issue
Block a user