]> xenbits.xensource.com Git - libvirt.git/commit
util: Add macro to overflow check integer assignments
authorPeter Krempa <pkrempa@redhat.com>
Wed, 27 May 2015 08:54:38 +0000 (10:54 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 3 Jun 2015 07:42:08 +0000 (09:42 +0200)
commit65c61e50306619373e25d0ec344045f973c9022b
tree74605e1694aa87e80e778bb09d5b285b1adb6d97
parentf35b9b78988f63041ff672ececa522f2844a685d
util: Add macro to overflow check integer assignments

Add a macro that will allow to simplify overflow checks and make them
more universal in case data types change.
src/util/virutil.h
tests/utiltest.c