Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 32236e5 in mainline


Ignore:
Timestamp:
2019-01-01T19:45:58Z (3 years ago)
Author:
Vojtech Horky <vojtech.horky@…>
Branches:
lfn, master
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.