projects
/
platform
/
core
/
appfw
/
app-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
533b37e
)
Fix wrong type casting
71/276471/1
author
Hwankyu Jhun
<h.jhun@samsung.com>
Fri, 17 Jun 2022 05:32:28 +0000
(14:32 +0900)
committer
Hwankyu Jhun
<h.jhun@samsung.com>
Fri, 17 Jun 2022 05:32:28 +0000
(14:32 +0900)
In 64 bit, guint is 4 bytes. The pointer type has to be 8 bytes in 64-bit.
Change-Id: I8394013c283935b1cabeac61a8cac3b1ab952e8a
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
tizen-cpp/app-core-ui-cpp/app_core_ui_base.cc
patch
|
blob
|
history
diff --git
a/tizen-cpp/app-core-ui-cpp/app_core_ui_base.cc
b/tizen-cpp/app-core-ui-cpp/app_core_ui_base.cc
index
0683982
..
607ecbd
100644
(file)
--- a/
tizen-cpp/app-core-ui-cpp/app_core_ui_base.cc
+++ b/
tizen-cpp/app-core-ui-cpp/app_core_ui_base.cc
@@
-441,7
+441,8
@@
void AppCoreUiBase::Impl::Run(int argc, char** argv) {
service_ = parent_->CreateTask();
context_ = g_main_context_new();
- std::string env = std::to_string(GPOINTER_TO_UINT(context_));
+ std::string env = std::to_string(
+ reinterpret_cast<unsigned long int>(context_));
setenv("TIZEN_GLIB_CONTEXT", env.c_str(), 1);
thread_ = std::thread([&] {
@@
-454,7
+455,7
@@
void AppCoreUiBase::Impl::Run(int argc, char** argv) {
if (thread_.joinable())
thread_.join();
- setenv("TIZEN_GLIB_CONTEXT", "", 1);
+ setenv("TIZEN_GLIB_CONTEXT", "
0
", 1);
g_main_context_unref(context_);
context_ = nullptr;
return;