aboutsummaryrefslogtreecommitdiffstats
path: root/lib/erl_interface/src/legacy/erl_marshal.c
diff options
context:
space:
mode:
authorHenrik Nord <[email protected]>2013-12-02 15:51:11 +0100
committerHenrik Nord <[email protected]>2013-12-02 15:51:11 +0100
commit471abeb72af964049fcd3ed169d1bca7c5534d4c (patch)
tree62a18a1780b71aa285b44e703501587ded10ea05 /lib/erl_interface/src/legacy/erl_marshal.c
parent026a9226fcd47d29870f5b5d879919ce4f60d785 (diff)
parent25b992335e82919d6166b860c9b97710c5f33ae1 (diff)
downloadotp-471abeb72af964049fcd3ed169d1bca7c5534d4c.tar.gz
otp-471abeb72af964049fcd3ed169d1bca7c5534d4c.tar.bz2
otp-471abeb72af964049fcd3ed169d1bca7c5534d4c.zip
Merge branch 'maint'
Diffstat (limited to 'lib/erl_interface/src/legacy/erl_marshal.c')
-rw-r--r--lib/erl_interface/src/legacy/erl_marshal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/erl_interface/src/legacy/erl_marshal.c b/lib/erl_interface/src/legacy/erl_marshal.c
index e207b5f0f1..9558dc134b 100644
--- a/lib/erl_interface/src/legacy/erl_marshal.c
+++ b/lib/erl_interface/src/legacy/erl_marshal.c
@@ -290,7 +290,7 @@ int erl_encode_it(ETERM *ep, unsigned char **ext, int dist)
return 0;
}
/* SMALL_INTEGER */
- if ((ul < 256) && (ul >= 0)) {
+ if (ul < 256) {
*(*ext)++ = ERL_SMALL_INTEGER_EXT;
*(*ext)++ = ul & 0xff;
return 0;