Only in leocad.new: bin diff -ru leocad/common/project.cpp leocad.new/common/project.cpp --- leocad/common/project.cpp 2007-10-09 00:26:36 +0400 +++ leocad.new/common/project.cpp 2007-10-09 00:52:03 +0400 @@ -640,7 +640,7 @@ for (pGroup = pLastGroup; pGroup; pGroup = pGroup->m_pNext) { - i = (int)pGroup->m_pGroup; + i = (long int)pGroup->m_pGroup; pGroup->m_pGroup = NULL; if (i > 0xFFFF || i == -1) @@ -662,7 +662,7 @@ Piece* pPiece; for (pPiece = m_pPieces; pPiece; pPiece = pPiece->m_pNext) { - i = (int)pPiece->GetGroup(); + i = (long int)pPiece->GetGroup(); pPiece->SetGroup(NULL); if (i > 0xFFFF || i == -1) @@ -4767,7 +4767,7 @@ AddPiece(pPiece); pPiece->Select(true, false, false); - j = (int)pPiece->GetGroup(); + j = (long int)pPiece->GetGroup(); if (j != -1) pPiece->SetGroup(groups[j]); else @@ -4776,7 +4776,7 @@ for (j = 0; j < i; j++) { - int g = (int)groups[j]->m_pGroup; + int g = (long int)groups[j]->m_pGroup; groups[j]->m_pGroup = (g != -1) ? groups[g] : NULL; } diff -ru leocad/linux/dialogs.cpp leocad.new/linux/dialogs.cpp --- leocad/linux/dialogs.cpp 2007-10-09 00:26:36 +0400 +++ leocad.new/linux/dialogs.cpp 2007-10-09 00:49:59 +0400 @@ -219,7 +219,7 @@ void dlg_default_callback(GtkWidget *widget, gpointer data) { - *cur_ret = (int)data; + *cur_ret = (long int)data; } gint dlg_delete_callback(GtkWidget *widget, GdkEvent* event, gpointer data) diff -ru leocad/linux/dlgpiece.cpp leocad.new/linux/dlgpiece.cpp --- leocad/linux/dlgpiece.cpp 2007-10-09 00:26:36 +0400 +++ leocad.new/linux/dlgpiece.cpp 2007-10-09 00:49:24 +0400 @@ -64,7 +64,7 @@ info->wizard->ChangeColor (i, GPOINTER_TO_INT (data)); info->wizard->Redraw (); - set_button_pixmap2 (button, FlatColorArray[(int)data]); + set_button_pixmap2 (button, FlatColorArray[(long int)data]); } // A color button was clicked diff -ru leocad/linux/main.cpp leocad.new/linux/main.cpp --- leocad/linux/main.cpp 2007-10-09 00:26:36 +0400 +++ leocad.new/linux/main.cpp 2007-10-09 00:50:37 +0400 @@ -128,7 +128,7 @@ if (ignore_commands) return; - lcGetActiveProject()->HandleCommand((LC_COMMANDS)(int)data, 0); + lcGetActiveProject()->HandleCommand((LC_COMMANDS)(long int)data, 0); } static void view_destroy (GtkWidget *widget, gpointer data) @@ -139,7 +139,7 @@ void OnCommand(GtkWidget* widget, gpointer data) { Project* project = lcGetActiveProject(); - int id = (int)data; + int id = (long int)data; if (ignore_commands) return;