Skip to content

Commit fe2ae3f

Browse files
committed
midb: resolve build error on 32-bit
exch/midb/mail_engine.cpp:1319:74: error: invalid cast from type "time_t" {aka "long int"} to type "intptr_t" {aka "int"}
1 parent f102271 commit fe2ae3f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

exch/midb/mail_engine.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1316,7 +1316,7 @@ static DOUBLE_LIST* mail_engine_ct_build_internal(
13161316
mail_engine_ct_destroy_internal(plist);
13171317
return NULL;
13181318
}
1319-
ptree_node->pstatment = reinterpret_cast<void *>(reinterpret_cast<intptr_t>(mktime(&tmp_tm)));
1319+
ptree_node->pstatment = reinterpret_cast<void *>(static_cast<intptr_t>(mktime(&tmp_tm)));
13201320
} else if ('(' == argv[i][0]) {
13211321
len = strlen(argv[i]);
13221322
argv[i][len - 1] = '\0';

0 commit comments

Comments
 (0)