Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
S
spdlog
Project
Project
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
spdlog
Commits
9b218d4d
Commit
9b218d4d
authored
8 years ago
by
Guo Xiao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Convert off_t to size_t
parent
541dd88a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
os.h
include/spdlog/details/os.h
+2
-2
No files found.
include/spdlog/details/os.h
View file @
9b218d4d
...
...
@@ -216,11 +216,11 @@ inline size_t filesize(FILE *f)
#if !defined(__FreeBSD__) && !defined(__APPLE__) && (defined(__x86_64__) || defined(__ppc64__))
struct
stat64
st
;
if
(
fstat64
(
fd
,
&
st
)
==
0
)
return
st
.
st_size
;
return
st
atic_cast
<
size_t
>
(
st
.
st_size
)
;
#else // unix 32 bits or osx
struct
stat
st
;
if
(
fstat
(
fd
,
&
st
)
==
0
)
return
st
.
st_size
;
return
st
atic_cast
<
size_t
>
(
st
.
st_size
)
;
#endif
#endif
throw
spdlog_ex
(
"Failed getting file size from fd"
,
errno
);
...
...
This diff is collapsed.
Click to expand it.
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