summaryrefslogtreecommitdiff
path: root/testing
diff options
context:
space:
mode:
authoriphydf <iphydf@users.noreply.github.com>2018-08-26 20:34:26 +0000
committeriphydf <iphydf@users.noreply.github.com>2018-09-03 20:03:47 +0000
commit6872c14e1a02445d945623ee6e85230c5d7ecbce (patch)
tree30d90b93445976e56b96946b6e87b764eddd48a8 /testing
parentd296490a742b226fc17a71cf96ab73fc16719b20 (diff)
Avoid use of global mutable state in mono_time on win32.
This uses a trick to get read-write access to `this` from a `const` member function, similar to C++ `mutable`, but uglier.
Diffstat (limited to 'testing')
-rw-r--r--testing/av_test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/testing/av_test.c b/testing/av_test.c
index 18bb3105..ca2b2779 100644
--- a/testing/av_test.c
+++ b/testing/av_test.c
@@ -569,7 +569,7 @@ CHECK_ARG:
569 initialize_tox(&bootstrap, &AliceAV, &AliceCC, &BobAV, &BobCC); 569 initialize_tox(&bootstrap, &AliceAV, &AliceCC, &BobAV, &BobCC);
570 570
571 // TODO(iphydf): Don't depend on toxcore internals 571 // TODO(iphydf): Don't depend on toxcore internals
572 const Mono_Time *mono_time = (*(Messenger **)bootstrap)->mono_time; 572 Mono_Time *mono_time = (*(Messenger **)bootstrap)->mono_time;
573 573
574 if (TEST_TRANSFER_A) { 574 if (TEST_TRANSFER_A) {
575 SNDFILE *af_handle; 575 SNDFILE *af_handle;