Toggle navigation
Toggle navigation
This project
Loading...
Sign in
ios
/
Masonry
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Plain Diff
Browse Files
Authored by
Jonas Budelmann
11 years ago
Commit
9ab610a0835df763fad207b664e5cb16fdf2df43
2 parents
bec72975
62b96665
Merge pull request #86 from realestate-com-au/master
Minor fixes for stricter compiler warnings
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
Masonry/MASCompositeConstraint.m
Masonry/MASUtilities.h
Masonry/MASCompositeConstraint.m
View file @
9ab610a
...
...
@@ -39,7 +39,8 @@
}
-
(
MASConstraint
*
)
constraint
:(
MASConstraint
__unused
*
)
constraint
addConstraintWithLayoutAttribute
:(
NSLayoutAttribute
)
layoutAttribute
{
MASConstraint
*
newConstraint
=
[
self
.
delegate
constraint
:
self
addConstraintWithLayoutAttribute
:
layoutAttribute
];
id
<
MASConstraintDelegate
>
strongDelegate
=
self
.
delegate
;
MASConstraint
*
newConstraint
=
[
strongDelegate
constraint
:
self
addConstraintWithLayoutAttribute
:
layoutAttribute
];
newConstraint
.
delegate
=
self
;
[
self
.
childConstraints
addObject
:
newConstraint
];
return
newConstraint
;
...
...
Masonry/MASUtilities.h
View file @
9ab610a
...
...
@@ -112,7 +112,7 @@ static inline id _MASBoxValue(const char *type, ...) {
unsigned
char
actual
=
(
unsigned
char
)
va_arg
(
v
,
unsigned
int
);
obj
=
[
NSNumber
numberWithUnsignedChar
:
actual
];
}
else
if
(
strcmp
(
type
,
@encode
(
unsigned
int
))
==
0
)
{
unsigned
int
actual
=
(
int
)
va_arg
(
v
,
unsigned
int
);
unsigned
int
actual
=
(
unsigned
int
)
va_arg
(
v
,
unsigned
int
);
obj
=
[
NSNumber
numberWithUnsignedInt
:
actual
];
}
else
if
(
strcmp
(
type
,
@encode
(
unsigned
long
))
==
0
)
{
unsigned
long
actual
=
(
unsigned
long
)
va_arg
(
v
,
unsigned
long
);
...
...
Please
register
or
login
to post a comment