Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
git2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
git2
Commits
901434b0
Commit
901434b0
authored
Nov 14, 2016
by
Patrick Steinhardt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
common: cast precision specifiers to int
parent
c77a55a9
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
src/odb.c
+1
-1
src/tree.c
+2
-2
No files found.
src/odb.c
View file @
901434b0
...
...
@@ -1400,7 +1400,7 @@ int git_odb__error_notfound(
char
oid_str
[
GIT_OID_HEXSZ
+
1
];
git_oid_tostr
(
oid_str
,
oid_len
+
1
,
oid
);
giterr_set
(
GITERR_ODB
,
"Object not found - %s (%.*s)"
,
message
,
oid_len
,
oid_str
);
message
,
(
int
)
oid_len
,
oid_str
);
}
else
giterr_set
(
GITERR_ODB
,
"Object not found - %s"
,
message
);
...
...
src/tree.c
View file @
901434b0
...
...
@@ -917,7 +917,7 @@ int git_tree_entry_bypath(
if
(
entry
==
NULL
)
{
giterr_set
(
GITERR_TREE
,
"the path '%.*s' does not exist in the given tree"
,
filename_len
,
path
);
"the path '%.*s' does not exist in the given tree"
,
(
int
)
filename_len
,
path
);
return
GIT_ENOTFOUND
;
}
...
...
@@ -927,7 +927,7 @@ int git_tree_entry_bypath(
* then this entry *must* be a tree */
if
(
!
git_tree_entry__is_tree
(
entry
))
{
giterr_set
(
GITERR_TREE
,
"the path '%.*s' exists but is not a tree"
,
filename_len
,
path
);
"the path '%.*s' exists but is not a tree"
,
(
int
)
filename_len
,
path
);
return
GIT_ENOTFOUND
;
}
...
...
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