Skip to content

Commit 761f7fd

Browse files
committed
fix long long to int64_t
1 parent d691d12 commit 761f7fd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4129,7 +4129,7 @@ GValue phpgtk_get_gvalue(Php::Value phpgtk_value, GType type_column)
41294129
case G_TYPE_LONG:
41304130
{
41314131
// Cast
4132-
long long b = (long long)phpgtk_value;
4132+
int64_t b = (int64_t)phpgtk_value;
41334133
//Php::call("var_dump", b);
41344134
g_value_init(&gtk_value, G_TYPE_LONG);
41354135
g_value_set_long(&gtk_value, b);

src/Gtk/GtkTreeModel.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ Php::Value GtkTreeModel_::get_value(Php::Parameters &parameters)
8383
}
8484
case G_TYPE_LONG:
8585
{
86-
return (long long) g_value_get_long(&value);
86+
return (int64_t) g_value_get_long(&value);
8787
}
8888
case G_TYPE_ULONG:
8989
{

0 commit comments

Comments
 (0)