Are people actually watching liboobs development?! ;-) I've tried using << before, but I was getting strange results because when converting the constant value to signed int, something was going wrong and I was getting -GMAX_INT32. I've tried again with your solution, and that does not work either. Though, this one does, despite being pretty ugly: ((guint32) (1 << (8 * sizeof (uid_t) - 1)) - 1))
So I guess I'm going to use that one. What was the 1L supposed to fix? Though, note that recent gcc versions detect pow() using constant (esp. integers), and replace them with their actual result, so no runtime overhead is happening ATM, and floating point are not even used. -- problem with big uids in "Users and Groups" tool https://bugs.launchpad.net/bugs/303997 You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to liboobs in ubuntu. -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs