diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2013-11-27 12:52:17 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2013-11-27 12:52:32 +0100 |
commit | a39d07e13495cd06df7169b7778c8d07018794c5 (patch) | |
tree | dde67f05acf71fcf181f90bce8dbcc1103e6d400 /idlc | |
parent | d8565bd266939b4ae4231f5b2c7d6260bee404e9 (diff) |
Unwind occurrences of deprecated sal_sChar, sal_uChar
Change-Id: I76be464200d486efef9c8a7e957c310c9adae3b8
Diffstat (limited to 'idlc')
-rw-r--r-- | idlc/source/astexpression.cxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/idlc/source/astexpression.cxx b/idlc/source/astexpression.cxx index 2f02d896376e..69b5f9f6248a 100644 --- a/idlc/source/astexpression.cxx +++ b/idlc/source/astexpression.cxx @@ -628,37 +628,37 @@ coerce_value(AstExprValue *ev, ExprType t) case ET_short: if (ev->u.sval < SAL_MIN_INT8 || ev->u.sval > SAL_MAX_UINT8) return NULL; - ev->u.byval = (sal_uChar)ev->u.sval; + ev->u.byval = (unsigned char)ev->u.sval; ev->et = ET_byte; return ev; case ET_ushort: if (ev->u.usval > SAL_MAX_UINT8) return NULL; - ev->u.byval = (sal_uChar)ev->u.usval; + ev->u.byval = (unsigned char)ev->u.usval; ev->et = ET_byte; return ev; case ET_long: if (ev->u.lval < SAL_MIN_INT8 || ev->u.lval > SAL_MAX_UINT8) return NULL; - ev->u.byval = (sal_uChar) ev->u.lval; + ev->u.byval = (unsigned char) ev->u.lval; ev->et = ET_byte; return ev; case ET_ulong: if (ev->u.ulval > SAL_MAX_UINT8) return NULL; - ev->u.byval = (sal_uChar) ev->u.ulval; + ev->u.byval = (unsigned char) ev->u.ulval; ev->et = ET_byte; return ev; case ET_hyper: if (ev->u.hval < SAL_MIN_INT8 || ev->u.hval > SAL_MAX_UINT8) return NULL; - ev->u.byval = (sal_uChar) ev->u.hval; + ev->u.byval = (unsigned char) ev->u.hval; ev->et = ET_byte; return ev; case ET_uhyper: if (ev->u.uhval > SAL_MAX_UINT8) return NULL; - ev->u.byval = (sal_uChar) ev->u.uhval; + ev->u.byval = (unsigned char) ev->u.uhval; ev->et = ET_byte; return ev; case ET_boolean: @@ -668,13 +668,13 @@ coerce_value(AstExprValue *ev, ExprType t) case ET_float: if (ev->u.fval < SAL_MIN_INT8 || ev->u.fval > SAL_MAX_UINT8) return NULL; - ev->u.byval = (sal_uChar) ev->u.fval; + ev->u.byval = (unsigned char) ev->u.fval; ev->et = ET_byte; return ev; case ET_double: if (ev->u.dval < SAL_MIN_INT8 || ev->u.dval > SAL_MAX_UINT8) return NULL; - ev->u.byval = (sal_uChar) ev->u.dval; + ev->u.byval = (unsigned char) ev->u.dval; ev->et = ET_byte; return ev; case ET_byte: |