You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.
[ 48%] Building C object libsignal-protocol-c/src/CMakeFiles/signal-protocol-c.dir/signal_protocol.c.o
/home/taurus/develop/libsignal-protocol-qt/libsignal-protocol-c/src/signal_protocol.c: In function 'signal_type_ref_count':
/home/taurus/develop/libsignal-protocol-qt/libsignal-protocol-c/src/signal_protocol.c:75:12: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion]
return instance->ref_count;
^
signal_type_ref_count returns inthere but signal_type_base::ref_count is unsigned inthere.
The text was updated successfully, but these errors were encountered:
Seems like ref_count should be defined as an int not an unsigned int in struct signal_type_base as we actually do assert(instance->ref_count > 0);. That's a better way to ensure that ref_count is positive definite.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
signal_type_ref_count
returnsint
here butsignal_type_base::ref_count
isunsigned int
here.The text was updated successfully, but these errors were encountered: