Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kicad-source-mirror
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
kicad-source-mirror
Commits
527e7922
Commit
527e7922
authored
Jul 19, 2009
by
charras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
attempt to fix 64 bits compiler error
parent
997270d8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
3 deletions
+12
-3
dialog_design_rules.cpp
pcbnew/dialog_design_rules.cpp
+12
-3
No files found.
pcbnew/dialog_design_rules.cpp
View file @
527e7922
...
...
@@ -143,7 +143,10 @@ void DIALOG_DESIGN_RULES::FillListBoxWithNetsNames( wxListBox* aListBox, int aNe
aListBox
->
Append
(
m_StockNets
[
ii
]
->
GetNetname
()
);
// Store the index of this net
aListBox
->
SetClientData
(
idx
,
(
void
*
)
ii
);
// This is a trick to get an unsigned integer index from a pointer value.
// Some compilers cannot accept to convert an unsigned to a pointer without complains
char
*
ptr
=
(
char
*
)
0
+
ii
;
aListBox
->
SetClientData
(
idx
,
ptr
);
idx
++
;
}
}
...
...
@@ -474,7 +477,10 @@ void DIALOG_DESIGN_RULES::OnRightToLeftCopyButton( wxCommandEvent& event )
if
(
!
m_listBoxRightNetSelect
->
IsSelected
(
ii
)
)
continue
;
unsigned
idx
=
(
unsigned
)
m_listBoxRightNetSelect
->
GetClientData
(
ii
);
// This is a trick to get an unsigned integer index from a pointer value.
// Some compilers cannot accept to convert a pointer to an unsigned without complains
char
*
ptr
=
(
char
*
)
m_listBoxRightNetSelect
->
GetClientData
(
ii
);
unsigned
idx
=
ptr
-
(
char
*
)
0
;
m_NetsLinkToClasses
[
idx
]
=
idx_class
;
}
...
...
@@ -497,7 +503,10 @@ void DIALOG_DESIGN_RULES::OnLeftToRightCopyButton( wxCommandEvent& event )
if
(
!
m_listBoxLeftNetSelect
->
IsSelected
(
ii
)
)
continue
;
unsigned
idx
=
(
unsigned
)
m_listBoxLeftNetSelect
->
GetClientData
(
ii
);
// This is a trick to get an unsigned integer index from a pointer value.
// Some compilers cannot accept to convert a pointer to an unsigned without complains
char
*
ptr
=
(
char
*
)
m_listBoxLeftNetSelect
->
GetClientData
(
ii
);
unsigned
idx
=
ptr
-
(
char
*
)
0
;
m_NetsLinkToClasses
[
idx
]
=
idx_class
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment