summaryrefslogtreecommitdiffstats
path: root/source/ap/cdrdao/cdrdao.narrowing.diff
blob: ddca79468adc9d52a639c8fa4ff4005fcd99c8b4 (about) (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
From fb14cd15702cbd4bf811a5f7a5edea00c7ac2b66 Mon Sep 17 00:00:00 2001
From: root <hexumg@gmail.com>
Date: Fri, 8 Jan 2016 00:34:43 +0300
Subject: [PATCH] CdrDriver.cc:498:64: Fix narrowing conversion error

---
 dao/CdrDriver.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dao/CdrDriver.cc b/dao/CdrDriver.cc
index ee89620..4d1edda 100644
--- a/dao/CdrDriver.cc
+++ b/dao/CdrDriver.cc
@@ -495,7 +495,7 @@ unsigned char CdrDriver::syncPattern[12] = {
   0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0
 };

-char CdrDriver::REMOTE_MSG_SYNC_[4] = { 0xff, 0x00, 0xff, 0x00 };
+char CdrDriver::REMOTE_MSG_SYNC_[4] = { '\xff', '\x00', '\xff', '\x00' };


 /* Maps a string to the corresponding driver option value
--
2.6.4