mirror of
https://github.com/nodejs/node.git
synced 2026-11-30 11:55:44 -05:00
src: silence compiler warning in node_report.cc
Currently the following compiler warnings is generated:
../src/node_report.cc:778:43:
warning: format specifies type 'unsigned long' but the argument has
type 'rlim_t' (aka 'unsigned long long') [-Wformat]
snprintf(buf, sizeof(buf), "%lu", limit.rlim_max);
~~~ ^~~~~~~~~~~~~~
%llu
1 warning generated.
This commit changes the format specifier to $llu.
PR-URL: https://github.com/nodejs/node/pull/25557
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Minwoo Jung <minwoo@nodesource.com>
This commit is contained in:
1 parent
0800f91dcc
commit
8f42c9efe9
1 file changed
+1
-1
+1
-1
@@ -775,7 +775,7 @@ static void PrintSystemInformation(JSONWriter* writer) {
|
||||
snprintf(buf, sizeof(buf), "%lu", limit.rlim_max);
|
||||
hard = std::string(buf);
|
||||
#else
|
||||
snprintf(buf, sizeof(buf), "%lu", limit.rlim_max);
|
||||
snprintf(buf, sizeof(buf), "%llu", limit.rlim_max);
|
||||
hard = std::string(buf);
|
||||
#endif
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user