未验证 提交 1d49be65 编写于 作者: weixin_48148422's avatar weixin_48148422 提交者: GitHub

Merge pull request #1203 from taosdata/feature/lihui

[#1201]
...@@ -976,15 +976,21 @@ void assignVal(char *val, const char *src, int32_t len, int32_t type) { ...@@ -976,15 +976,21 @@ void assignVal(char *val, const char *src, int32_t len, int32_t type) {
break; break;
} }
case TSDB_DATA_TYPE_FLOAT: { case TSDB_DATA_TYPE_FLOAT: {
#ifdef _TD_ARM_32_
float fv = GET_FLOAT_VAL(src); float fv = GET_FLOAT_VAL(src);
SET_FLOAT_VAL_ALIGN(val, &fv); SET_FLOAT_VAL_ALIGN(val, &fv);
//*((float *)val) = GET_FLOAT_VAL(src); #else
*((float *)val) = GET_FLOAT_VAL(src);
#endif
break; break;
}; };
case TSDB_DATA_TYPE_DOUBLE: { case TSDB_DATA_TYPE_DOUBLE: {
#ifdef _TD_ARM_32_
double dv = GET_DOUBLE_VAL(src); double dv = GET_DOUBLE_VAL(src);
SET_DOUBLE_VAL_ALIGN(val, &dv); SET_DOUBLE_VAL_ALIGN(val, &dv);
//*((double *)val) = GET_DOUBLE_VAL(src); #else
*((double *)val) = GET_DOUBLE_VAL(src);
#endif
break; break;
}; };
case TSDB_DATA_TYPE_TIMESTAMP: case TSDB_DATA_TYPE_TIMESTAMP:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册