X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=libdecnumber%2FdecNumberLocal.h;h=93645b3cd02b66dbc689ceee6d6f3fcaafce485a;hb=56a4f5a10b1e90d60527455b8542ba98fd0f6349;hp=dca79e51db70fef6ea7615437c99f41b8e1afe71;hpb=168a2f7744f9a9cdcb53b1861a941cc40291102f;p=deliverable%2Fbinutils-gdb.git diff --git a/libdecnumber/decNumberLocal.h b/libdecnumber/decNumberLocal.h index dca79e51db..93645b3cd0 100644 --- a/libdecnumber/decNumberLocal.h +++ b/libdecnumber/decNumberLocal.h @@ -1,5 +1,5 @@ /* Local definitions for the decNumber C Library. - Copyright (C) 2007, 2009 Free Software Foundation, Inc. + Copyright (C) 2007-2018 Free Software Foundation, Inc. Contributed by IBM Corporation. Author Mike Cowlishaw. This file is part of GCC. @@ -153,10 +153,9 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see #define UBTOUI(b) (memcpy((void *)&uiwork, b, 4), uiwork) /* Store a uInt, etc., into bytes starting at a char* or uByte*. */ - /* Returns i, evaluated, for convenience; has to use uiwork because */ - /* i may be an expression. */ - #define UBFROMUS(b, i) (uswork=(i), memcpy(b, (void *)&uswork, 2), uswork) - #define UBFROMUI(b, i) (uiwork=(i), memcpy(b, (void *)&uiwork, 4), uiwork) + /* Has to use uiwork because i may be an expression. */ + #define UBFROMUS(b, i) (uswork=(i), memcpy(b, (void *)&uswork, 2)) + #define UBFROMUI(b, i) (uiwork=(i), memcpy(b, (void *)&uiwork, 4)) /* X10 and X100 -- multiply integer i by 10 or 100 */ /* [shifts are usually faster than multiply; could be conditional] */