Index: trunk/src/hid_attrib.h =================================================================== --- trunk/src/hid_attrib.h (revision 26938) +++ trunk/src/hid_attrib.h (revision 26939) @@ -10,7 +10,7 @@ str_value to the enumeration string. PCB_HATT_LABEL just shows the default str_value. */ struct pcb_hid_attr_val_s { - int lng; + long lng; const char *str_value; double real_value; pcb_coord_t coord_value; Index: trunk/src/hid_dad_spin.c =================================================================== --- trunk/src/hid_dad_spin.c (revision 26938) +++ trunk/src/hid_dad_spin.c (revision 26939) @@ -284,7 +284,7 @@ case PCB_DAD_SPIN_INT: end->val.lng += step; SPIN_CLAMP(end->val.lng); - sprintf(buf, "%d", end->val.lng); + sprintf(buf, "%ld", end->val.lng); break; case PCB_DAD_SPIN_DOUBLE: end->val.real_value += step; Index: trunk/src_plugins/dialogs/dlg_padstack.c =================================================================== --- trunk/src_plugins/dialogs/dlg_padstack.c (revision 26938) +++ trunk/src_plugins/dialogs/dlg_padstack.c (revision 26939) @@ -252,16 +252,20 @@ { pse_t *pse = caller_data; static int lock = 0; + int xm, sm; if (lock != 0) return; + xm = pse->attrs[pse->xmirror].val.lng; + sm = pse->attrs[pse->smirror].val.lng; pcb_pstk_change_instance(pse->ps, NULL, &pse->attrs[pse->clearance].val.coord_value, &pse->attrs[pse->rot].val.real_value, - &pse->attrs[pse->xmirror].val.lng, - &pse->attrs[pse->smirror].val.lng); + &xm, &sm); + pse->attrs[pse->xmirror].val.lng = xm; + pse->attrs[pse->smirror].val.lng = sm; lock++; pse_ps2dlg(hid_ctx, pse); /* to get calculated text fields updated */ @@ -310,11 +314,11 @@ return; if (proto != NULL) { - pcb_pstk_proto_change_hole(proto, - &pse->attrs[pse->hplated].val.lng, - &pse->attrs[pse->hdia].val.coord_value, - &pse->attrs[pse->htop_val].val.lng, - &pse->attrs[pse->hbot_val].val.lng); + int hp = pse->attrs[pse->hplated].val.lng, ht = pse->attrs[pse->htop_val].val.lng, hb = pse->attrs[pse->hbot_val].val.lng; + pcb_pstk_proto_change_hole(proto, &hp, &pse->attrs[pse->hdia].val.coord_value, &ht, &hb); + pse->attrs[pse->hplated].val.lng = hp; + pse->attrs[pse->htop_val].val.lng = ht; + pse->attrs[pse->hbot_val].val.lng = hb; } lock++; Index: trunk/src_plugins/dialogs/dlg_pref_confedit.c =================================================================== --- trunk/src_plugins/dialogs/dlg_pref_confedit.c (revision 26938) +++ trunk/src_plugins/dialogs/dlg_pref_confedit.c (revision 26939) @@ -128,7 +128,7 @@ switch(ctx->nat->type) { case CFN_STRING: val = attr->val.str_value; break; case CFN_BOOLEAN: - case CFN_INTEGER: sprintf(buf, "%d", attr->val.lng); break; + case CFN_INTEGER: sprintf(buf, "%ld", attr->val.lng); break; case CFN_REAL: sprintf(buf, "%f", attr->val.real_value); break; case CFN_COORD: pcb_snprintf(buf, sizeof(buf), "%.08$mH", attr->val.coord_value); break; case CFN_UNIT: Index: trunk/src_plugins/dialogs/dlg_test.c =================================================================== --- trunk/src_plugins/dialogs/dlg_test.c (revision 26938) +++ trunk/src_plugins/dialogs/dlg_test.c (revision 26939) @@ -320,7 +320,7 @@ hv.str_value = tmp; - sprintf(tmp, "%d", ctx->dlg[ctx->wspin_int].val.lng); + sprintf(tmp, "%ld", ctx->dlg[ctx->wspin_int].val.lng); pcb_gui->attr_dlg_set_value(hid_ctx, ctx->wspout_int, &hv); sprintf(tmp, "%f", ctx->dlg[ctx->wspin_double].val.real_value); pcb_gui->attr_dlg_set_value(hid_ctx, ctx->wspout_double, &hv); @@ -332,7 +332,7 @@ static void cb_tab_chg(void *hid_ctx, void *caller_data, pcb_hid_attribute_t *attr) { test_t *ctx = caller_data; - printf("Tab switch to %d!\n", ctx->dlg[ctx->wtab].val.lng); + printf("Tab switch to %ld!\n", ctx->dlg[ctx->wtab].val.lng); } static void cb_jump(void *hid_ctx, void *caller_data, pcb_hid_attribute_t *attr) Index: trunk/src_plugins/export_openems/export_openems.c =================================================================== --- trunk/src_plugins/export_openems/export_openems.c (revision 26938) +++ trunk/src_plugins/export_openems/export_openems.c (revision 26939) @@ -205,7 +205,7 @@ fprintf(ctx->f, "%%%% base_priority and offset: chassis for the board to sit in.\n"); fprintf(ctx->f, "%% base priority: if the board displaces the model of the chassis or the other way around.\n"); - fprintf(ctx->f, "base_priority=%d;\n", ctx->options[HA_base_prio].lng); + fprintf(ctx->f, "base_priority=%ld;\n", ctx->options[HA_base_prio].lng); fprintf(ctx->f, "\n"); fprintf(ctx->f, "%% offset on the whole layout to locate it relative to the simulation origin\n"); pcb_fprintf(ctx->f, "offset.x = %mm;\n", -ctx->ox); @@ -222,7 +222,7 @@ fprintf(ctx->f, "\n"); fprintf(ctx->f, "%% how many points should be used to describe the round end of traces.\n"); - fprintf(ctx->f, "kludge.segments = %d;\n", ctx->options[HA_segments].lng); + fprintf(ctx->f, "kludge.segments = %ld;\n", ctx->options[HA_segments].lng); fprintf(ctx->f, "\n"); fprintf(ctx->f, "\n"); Index: trunk/src_plugins/export_stat/stat.c =================================================================== --- trunk/src_plugins/export_stat/stat.c (revision 26938) +++ trunk/src_plugins/export_stat/stat.c (revision 26939) @@ -165,7 +165,7 @@ fprintf(f, "ha:pcb-rnd-board-stats-v2 {\n"); fprintf(f, " ha:meta {\n"); fprintf(f, " date={%s}\n", buff); - fprintf(f, " built=%d\n", options[HA_built].lng); + fprintf(f, " built=%ld\n", options[HA_built].lng); fprintf(f, " lht_built=%s\n", (options[HA_lht_built].lng ? "yes" : "no")); fprintf(f, " orig_rnd=%s\n", (options[HA_orig].lng ? "yes" : "no")); fprintf(f, " first_ver=%s\n", options[HA_first_ver].str_value);