projects
/
asdcplib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a985cd9
)
Remove MSVC-ism; I think this is safe, and these methods are only
win32-crash
author
Carl Hetherington
<cth@carlh.net>
Tue, 22 Feb 2022 22:50:22 +0000
(23:50 +0100)
committer
Carl Hetherington
<cth@carlh.net>
Thu, 24 Feb 2022 20:13:14 +0000
(21:13 +0100)
used for debug logging anyway as far as I can see.
src/asdcp/KLV.h
patch
|
blob
|
history
diff --git
a/src/asdcp/KLV.h
b/src/asdcp/KLV.h
index bad1f125523e1125631dbd7bfe30cafef06a9275..5bca07c7ae18c428e4f8eb168454afc9b5c90aa8 100755
(executable)
--- a/
src/asdcp/KLV.h
+++ b/
src/asdcp/KLV.h
@@
-57,22
+57,14
@@
namespace ASDCP
inline const char* i64sz(i64_t i, char* buf)
{
assert(buf);
-#ifdef WIN32
- snprintf(buf, IntBufferLen, "%I64d", i);
-#else
snprintf(buf, IntBufferLen, "%lld", i);
-#endif
return buf;
}
inline const char* ui64sz(ui64_t i, char* buf)
{
assert(buf);
-#ifdef WIN32
- snprintf(buf, IntBufferLen, "%I64u", i);
-#else
snprintf(buf, IntBufferLen, "%llu", i);
-#endif
return buf;
}