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
560970da
Commit
560970da
authored
Jan 29, 2010
by
dickelbeck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
size_t can be 'unsigned long int' on some platforms, we want 'unsigned' from DIM
parent
ce72c1f9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
macros.h
include/macros.h
+1
-1
No files found.
include/macros.h
View file @
560970da
...
...
@@ -51,7 +51,7 @@ static inline const wxChar* GetChars( wxString s )
#define NEGATE( x ) (x = -x)
/// # of elements in an arrray
#define DIM( x )
( sizeof(x) / sizeof( (x)[0] ) )
#define DIM( x )
unsigned( sizeof(x) / sizeof( (x)[0] ) ) // not size_t
#define DEG2RAD( Deg ) ( (Deg) * M_PI / 180.0 )
...
...
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