Commit cea09e72 authored by David Boucher's avatar David Boucher
Browse files

cleanup(process): warning removed.

parent 67b13b4b
......@@ -20,7 +20,6 @@
#define CC_PROCESS_POSIX_HH
#include <sys/types.h>
#include <array>
#include <condition_variable>
#include <mutex>
#include <string>
......
......@@ -404,7 +404,7 @@ unsigned int process::write(std::string const& data) {
*/
static std::string to_string(const char* data, size_t size) {
std::ostringstream oss;
for (int i = 0; i < size; i++) {
for (size_t i = 0; i < size; i++) {
if (!isprint(*data)) {
unsigned int c = *data;
unsigned char c1, c2;
......
......@@ -44,5 +44,5 @@ int main() {
<< std::endl;
// Return check result.
return (retval);
return retval;
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment