Changeset 32236e5 in mainline


Ignore:
Timestamp:
2019-01-01T19:45:58Z (5 years ago)
Author:
Vojtech Horky <vojtech.horky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
713ba400
Parents:
7e85d2b
Message:

Add can_cast_size_t_to_int

There are already several places where we check that it is okay to cast
size_t value to int. This function should unify these places to replace
non-trivial code with a simple function call.

Also added a (hopefully correct) test for this function.

More functions should be added on-demand basis.

Location:
uspace/lib/c
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
Note: See TracChangeset for help on using the changeset viewer.