From 6e2c0f7010ed7b2f8504f86e662211dea608f8f9 Mon Sep 17 00:00:00 2001 From: Mark Salyzyn Date: Fri, 2 May 2014 15:47:24 -0700 Subject: [PATCH] logd: build breakage in git_master-nova @ 1151709 Change-Id: Ic7920d1b0930155c20a896720a79af62f8acacc1 --- logd/LogListener.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/logd/LogListener.cpp b/logd/LogListener.cpp index 6ff4d3a09..8186cea97 100644 --- a/logd/LogListener.cpp +++ b/logd/LogListener.cpp @@ -103,7 +103,7 @@ bool LogListener::onDataAvailable(SocketClient *cli) { // truncated message to the logs. logbuf->log(log_id, realtime, cred->uid, cred->pid, tid, msg, - (n <= USHRT_MAX) ? (unsigned short) n : USHRT_MAX); + ((size_t) n <= USHRT_MAX) ? (unsigned short) n : USHRT_MAX); reader->notifyNewLog(); return true;