From 6a57ba1cb6fb15e252d8d2a25d6d3e9f7adbdca1 Mon Sep 17 00:00:00 2001 From: Fritz Elfert Date: Mon, 9 Apr 2001 20:57:39 +0000 Subject: Applied Fix from Markus Stipp --- lib/rfsv16.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/rfsv16.cc b/lib/rfsv16.cc index 2fda1a6..3e26f07 100644 --- a/lib/rfsv16.cc +++ b/lib/rfsv16.cc @@ -522,7 +522,7 @@ getResponse(bufferStore & data) "getBufferStore failed." << endl; } else if (data.getWord(0) == 0x2a && data.getWord(2) == data.getLen()-4) { - Enum ret = (enum errs)data.getWord(4); + Enum ret = (enum errs)(int16_t)data.getWord(4); data.discardFirstBytes(6); return ret; } else { -- cgit v1.2.3