X-Git-Url: http://git.cascardo.eti.br/?a=blobdiff_plain;f=lib%2Ftype-props.h;h=8c83ea6fc37d6c77e41555f7c79c409b542fbcc7;hb=b79b0811351b181f94b3f815aa267a5385868fdc;hp=9225041740b8fd503a5c60f265ce8441ab6ae85b;hpb=67a51a1d851df25eebc676cf24bbb0f821d1c736;p=cascardo%2Fovs.git diff --git a/lib/type-props.h b/lib/type-props.h index 922504174..8c83ea6fc 100644 --- a/lib/type-props.h +++ b/lib/type-props.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2008, 2011 Nicira Networks. + * Copyright (c) 2008, 2011 Nicira, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -20,7 +20,7 @@ #include #define TYPE_IS_INTEGER(TYPE) ((TYPE) 1.5 == (TYPE) 1) -#define TYPE_IS_SIGNED(TYPE) ((TYPE) 0 > (TYPE) -1) +#define TYPE_IS_SIGNED(TYPE) ((TYPE) 1 > (TYPE) -1) #define TYPE_VALUE_BITS(TYPE) (sizeof(TYPE) * CHAR_BIT - TYPE_IS_SIGNED(TYPE)) #define TYPE_MINIMUM(TYPE) (TYPE_IS_SIGNED(TYPE) \ ? ~(TYPE)0 << TYPE_VALUE_BITS(TYPE) \