Skip to content

Commit

Permalink
fix long long to int64_t
Browse files Browse the repository at this point in the history
  • Loading branch information
scorninpc committed Feb 11, 2023
1 parent d691d12 commit 761f7fd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4129,7 +4129,7 @@ GValue phpgtk_get_gvalue(Php::Value phpgtk_value, GType type_column)
case G_TYPE_LONG:
{
// Cast
long long b = (long long)phpgtk_value;
int64_t b = (int64_t)phpgtk_value;
//Php::call("var_dump", b);
g_value_init(&gtk_value, G_TYPE_LONG);
g_value_set_long(&gtk_value, b);
Expand Down
2 changes: 1 addition & 1 deletion src/Gtk/GtkTreeModel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ Php::Value GtkTreeModel_::get_value(Php::Parameters &parameters)
}
case G_TYPE_LONG:
{
return (long long) g_value_get_long(&value);
return (int64_t) g_value_get_long(&value);
}
case G_TYPE_ULONG:
{
Expand Down

0 comments on commit 761f7fd

Please sign in to comment.