message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
sdl/cpuinfo: Add HasAVX2() for SDL2 2.0.4 | @@ -19,6 +19,14 @@ static inline SDL_bool SDL_HasAVX()
}
#endif
+#if !(SDL_VERSION_ATLEAST(2,0,4))
+#pragma message("SDL_HasAVX2 is not supported before SDL 2.0.4")
+static inline SDL_bool SDL_HasAVX2()
+{
+ return SDL_FALSE;
+}
+#endif
+
*/
import "C"
@@ -102,3 +110,9 @@ func GetSystemRAM() int {
func HasAVX() bool {
... |
take care about hccapx converted from wpaclean | @@ -33,12 +33,6 @@ static const uint8_t nullnonce[] =
};
#define NULLNONCE_SIZE (sizeof(nullnonce))
-static const uint8_t nulliv[] =
-{
-0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
-};
-#define NULLIV_SIZE (sizeof(nulliv))
-
/*=========================================... |
Update SoloFeature_cellFiltering.cpp
I believe the `max` on line 20 should be a min, otherwise `nUMImin`
is almost _always_ simply determined by `nCB`, thus ignoring
`pSolo.cellFilter.topCells`. | @@ -17,7 +17,7 @@ void SoloFeature::cellFiltering()
uint32 nUMImax=0, nUMImin=0;
if (pSolo.cellFilter.type[0]=="TopCells") {
- nUMImin = nUMIperCBsorted[max(nCB-1,pSolo.cellFilter.topCells)];
+ nUMImin = nUMIperCBsorted[min(nCB-1,pSolo.cellFilter.topCells)];
} else {//other filtering types require simple filtering firs... |
Update: NAL.h: missing comparison rules added | @@ -122,6 +122,10 @@ R2( (R --> (A * B)), (C <-> A), |-, (R --> (C * B)), Truth_Analogy )
R2( (R --> (A * B)), (B --> C), |-, (R --> (A * C)), Truth_Deduction )
R2( (R --> (A * B)), (C --> B), |-, (R --> (A * C)), Truth_Abduction )
R2( (R --> (A * B)), (C <-> B), |-, (R --> (A * C)), Truth_Analogy )
+R2( ((A * B) --> R... |
Travis: Use newer version of `clang-format` | @@ -66,6 +66,10 @@ matrix:
- os: linux
compiler: clang
+ addons:
+ apt:
+ sources: [ llvm-toolchain-trusty-5.0 ]
+ packages: [ clang-format-5.0 ]
before_install:
- |
@@ -127,7 +131,6 @@ before_install:
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
[[ $ASAN == ON && $CC == gcc ]] && export CC=gcc-7 CXX=g++-7
sudo apt-get ... |
mangoapp: don't resize window if fps_only | @@ -227,7 +227,9 @@ static bool render(GLFWwindow* window) {
position_layer(sw_stats, params, window_size);
render_imgui(sw_stats, params, window_size, true);
overlay_end_frame();
+ if (!params.enabled[OVERLAY_PARAM_ENABLED_fps_only])
glfwSetWindowSize(window, window_size.x + 45.f, window_size.y + 325.f);
+
ImGui::EndF... |
Poll manager: Always check ResourceItem pointer to guard against SEGV | @@ -278,7 +278,7 @@ void PollManager::pollTimerFired()
if (suffix == RStateOn)
{
item = r->item(RAttrModelId);
- if (item->toString() == QLatin1String("TS0601"))
+ if (item && item->toString() == QLatin1String("TS0601"))
{
//This device haven't cluster 0006, and use Cluster specific
}
@@ -404,7 +404,8 @@ void PollManag... |
u3: disables meld and cram under U3_MEMORY_DEEBUG | @@ -379,6 +379,10 @@ _cu_all_to_loom(ur_root_t* rot_u, ur_nref ken, ur_nvec_t* cod_u)
static ur_nref
_cu_realloc(FILE* fil_u, ur_root_t** tor_u, ur_nvec_t* doc_u)
{
+#ifdef U3_MEMORY_DEBUG
+ c3_assert(0);
+#endif
+
// bypassing page tracking as an optimization
//
// NB: u3e_yolo() will mark all as dirty, and
@@ -442,6 ... |
fix HW cursor formatwq | @@ -429,8 +429,8 @@ NTSTATUS VioGpuDod::QueryAdapterInfo(_In_ CONST DXGKARG_QUERYADAPTERINFO* pQuery
if (IsPointerEnabled()) {
pDriverCaps->MaxPointerWidth = POINTER_SIZE;
pDriverCaps->MaxPointerHeight = POINTER_SIZE;
- pDriverCaps->PointerCaps.Value = 0;
pDriverCaps->PointerCaps.Color = 1;
+ pDriverCaps->PointerCaps.M... |
Load jvm and awt before loading tinysplinejava. | // Automatically load native library.
%pragma(java) jniclasscode=%{
static {
+ // Load dependencies
+ System.loadLibrary("jvm");
+ System.loadLibrary("awt");
+
// Determine platform.
final String os = System.getProperty("os.name").toLowerCase();
final String arch = System.getProperty("sun.arch.data.model");
try {
in = ... |
luv_new_udp: Always turn on UV_UDP_RECVMMSG | @@ -28,11 +28,8 @@ static int luv_new_udp(lua_State* L) {
uv_udp_t* handle = (uv_udp_t*)luv_newuserdata(L, sizeof(*handle));
int ret;
#if LUV_UV_VERSION_GEQ(1, 7, 0)
- if (lua_isnoneornil(L, 1)) {
- ret = uv_udp_init(ctx->loop, handle);
- }
- else {
unsigned int flags = AF_UNSPEC;
+ if (!lua_isnoneornil(L, 1)) {
if (lu... |
Improve error on failure | @@ -160,8 +160,19 @@ mongoc_secure_channel_setup_certificate_from_file (const char *filename)
NULL, /* pvStructInfo */
&blob_private_len); /* pcbStructInfo */
if (!success) {
- MONGOC_ERROR ("Failed to parse private key. Error 0x%.8X",
- GetLastError ());
+ LPTSTR msg = NULL;
+ FormatMessage (FORMAT_MESSAGE_ALLOCATE_BU... |
Fixed test seg fault | @@ -80,6 +80,9 @@ FLT max_pos_error = .08, max_rot_error = .001;
static void external_pose_fn(SurviveContext *ctx, const char *name, const SurvivePose *pose) {
SurviveSimpleContext *actx = ctx->user_ptr;
+ if (actx == 0)
+ return;
+
struct replay_ctx *rctx = survive_simple_get_user(actx);
rctx->external_pose_fn(ctx, na... |
Eliminate false-sharing with active txn set buckets and reduce bucket count... | @@ -30,9 +30,9 @@ struct active_ctxn_set {
* buckets reasonably constrained w.r.t the number of active ctxns
* reduces the overhead required to maintain the horizon.
*/
-static const u8 active_ctxn_bkt_maskv[] = { 3, 3, 3, 3, 7, 7, 7, 7, 7, 7, 7,
- 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15,
- 15, 15, 31, 31, 31, 31, 3... |
CLEANUP: updated the missed part in item dump refactoring. | @@ -1514,6 +1514,8 @@ ENGINE_ERROR_CODE item_dump_start(struct default_engine *engine,
mode = do_item_dump_mode_check(modestr);
if (mode == DUMP_MODE_MAX) {
+ logger->log(EXTENSION_LOG_INFO, NULL,
+ "NOT supported dump mode(%s)\n", modestr);
return ENGINE_ENOTSUP; /* NOT supported */
}
@@ -1596,11 +1598,11 @@ static vo... |
Do not read all the filesystem tree contents into memory: do it file-by-file. | @@ -137,9 +137,8 @@ static void err(status s)
rprintf("reported error\n");
}
-static buffer translate_contents(heap h, const char *target_root, value v)
+static buffer get_file_contents(heap h, const char *target_root, value v)
{
- if (tagof(v) == tag_tuple) {
value path = table_find((table)v, sym(host));
if (path) {
/... |
graph-api: send all pokes to %graph-view | import BaseApi from './base';
+
class PrivateHelper extends BaseApi {
graphAction(data) {
console.log(data);
- this.action('graph-store', 'graph-action', data);
+ this.action('graph-view', 'graph-action', data);
}
addGraph(ship = 'zod', name = 'asdf', graph = {}) {
|
Fix ccl_sample_pkemu.c | @@ -20,7 +20,7 @@ int main(int argc, char * argv[])
*/
double Neff = 3.04;
double mnu[3] = {0.02, 0.02, 0.02};
- ccl_mnu_type_label mnutype = ccl_mnu_list;
+ ccl_mnu_convention mnutype = ccl_mnu_list;
/*In the case of the emulator without massive
neutrinos, we simply set:
*/
|
[examples] correct typos in CMakeLists.txt | @@ -99,7 +99,7 @@ else()
# Control component examples
if(${control_installed} GREATER -1)
- MESSAGE(STATUS "control component found")
+ message(STATUS "control component found")
set(EXAMPLES_DIRECTORIES
"${EXAMPLES_DIRECTORIES}"
Control
@@ -127,6 +127,7 @@ else()
)
if (${mechanics_installed} LESS 0)
+ message("mechanic... |
[CUDA] Fix constant address space update for globals | @@ -465,6 +465,8 @@ void pocl_fix_constant_address_space(llvm::Module *module)
for (auto G = globals.begin(); G != globals.end(); G++)
{
llvm::Type *type = (*G)->getType();
+ if (type->getPointerAddressSpace() != 4)
+ continue;
llvm::Type *new_type = type->getPointerElementType()->getPointerTo(1);
(*G)->mutateType(new_... |
Update test_project.cpp
Isolating bug on gcc | @@ -78,10 +78,10 @@ BOOST_AUTO_TEST_CASE(test_save)
error = EN_open(ph_save, DATA_PATH_NET1, DATA_PATH_RPT, DATA_PATH_OUT);
BOOST_REQUIRE(error == 0);
- error = EN_saveinpfile(ph_save, "test_reopen.inp");
- BOOST_REQUIRE(error == 0);
+// error = EN_saveinpfile(ph_save, "test_reopen.inp");
+// BOOST_REQUIRE(error == 0);... |
add kline debug support | @@ -455,7 +455,11 @@ class Panda(object):
# pulse low for wakeup
def kline_wakeup(self):
+ if DEBUG:
+ print("kline wakeup...")
self._handle.controlWrite(Panda.REQUEST_OUT, 0xf0, 0, 0, b'')
+ if DEBUG:
+ print("kline wakeup done")
def kline_drain(self, bus=2):
# drain buffer
@@ -470,7 +474,10 @@ class Panda(object):
de... |
docs/library/builtins: Elaborate module title.
Mention that it also contains types, and spell out the module name in
the title. | -Builtin functions and exceptions
-================================
+Builtin types, functions and exceptions (:mod:`builtins`)
+=========================================================
All builtin functions and exceptions are described here. They are also
available via ``builtins`` module.
|
Fix format specifier in log_fr_connection_close()
ngtcp2_connection_close.reason_len is size_t, which is not necessarily 64-bit. | @@ -270,7 +270,7 @@ static void log_fr_connection_close(ngtcp2_log *log, const ngtcp2_pkt_hd *hd,
log->log_printf(log->user_data,
(NGTCP2_LOG_PKT
" CONNECTION_CLOSE(0x%02x) error_code=%s(0x%" PRIx64 ") "
- "frame_type=%" PRIx64 " reason_len=%" PRIu64 " reason=[%s]"),
+ "frame_type=%" PRIx64 " reason_len=%zu reason=[%s]... |
Add extra debug for events testing. | @@ -35,7 +35,14 @@ def event_handler(name, **kwargs):
elif name == 'process_stopping':
print('SHUTDOWN', mod_wsgi.active_requests)
-print('EVENTS', mod_wsgi.event_callbacks)
+print('EVENTS#ALL', mod_wsgi.event_callbacks)
+
+mod_wsgi.subscribe_events(event_handler)
+
+def shutdown_handler(reason):
+ print('SHUTDOWN', re... |
consistent layout indicator | @@ -1085,9 +1085,9 @@ drawbar(Monitor *m)
x += w;
}
- w = blw = TEXTW(m->ltsymbol);
+ w = blw = 60;
drw_setscheme(drw, scheme[SchemeNorm]);
- x = drw_text(drw, x, 0, w, bh, lrpad / 2, m->ltsymbol, 0, 0);
+ x = drw_text(drw, x, 0, w, bh, (w - TEXTW(m->ltsymbol)) * 0.5 + 10, m->ltsymbol, 0, 0);
if ((w = m->ww - sw - x - ... |
only pass CXXFLAGS through in oss-fuzz env | @@ -580,6 +580,6 @@ ELSE ()
ENDIF ()
# Retain CXX_FLAGS for std c++ compatiability across fuzz build/test environments
-IF (NOT BUILD_FUZZER)
+IF (NOT OSS_FUZZ)
SET(CMAKE_CXX_FLAGS "${CMAKE_C_FLAGS}")
-ENDIF (NOT BUILD_FUZZER)
+ENDIF (NOT OSS_FUZZ)
|
remove dead code in rewrite.c | @@ -125,32 +125,6 @@ vnet_rewrite_for_sw_interface (vnet_main_t * vnm,
vec_free (rewrite);
}
-void
-vnet_rewrite_for_tunnel (vnet_main_t * vnm,
- u32 tx_sw_if_index,
- u32 rewrite_node_index,
- u32 post_rewrite_node_index,
- vnet_rewrite_header_t * rw,
- u8 * rewrite_data, u32 rewrite_length)
-{
- ip_adjacency_t *adj =... |
Remove whitespace checker from CI build | @@ -52,17 +52,13 @@ Android_build:
- cd port/android
- make DYNAMIC=1 TCP=1 IPV4=1 SECURE=1 PKI=1 CLOUD=1 JAVA=1 DEBUG=0
-whitespace_and_doxygen:
+doxygen:
variables:
GIT_SUBMODULE_STRATEGY: none
stage: build
before_script:
- - apt update && apt -y install make autoconf doxygen clang-format
+ - apt update && apt -y ins... |
net/wireless: add support for netdev private ioctl | #define SIOCSIWPTAPRIO _WLIOC(0x0039) /* Set PTA priority type */
#define SIOCGIWPTAPRIO _WLIOC(0x003a) /* Get PTA priority type */
+/* -------------------- DEV PRIVATE IOCTL LIST -------------------- */
+
+/* These 32 ioctl are wireless device private, for 16 commands.
+ * Each driver is free to use them for whatever ... |
fix deb/rpm package generation | @@ -134,13 +134,11 @@ cd out
# .tgz package
CMAKE_PACKAGE_TYPE=tgz
-# .deb package
if [ -f /usr/bin/dpkg ]; then
+ # .deb package
export CMAKE_PACKAGE_TYPE=deb
-fi
-
+elif [ -f /usr/bin/rpmbuild ]; then
# .rpm package
-if [ -f /usr/bin/rpmbuild ]; then
export CMAKE_PACKAGE_TYPE=rpm
fi
@@ -167,14 +165,12 @@ rm -f *.deb ... |
vere: mingw: add smoke test to build action | @@ -134,3 +134,6 @@ jobs:
- run: make build/urbit build/urbit-worker
working-directory: ./pkg/urbit
+
+ - run: build/urbit -d -B ../../bin/brass.pill -F zod && curl -f --data '{"source":{"dojo":"+hood/exit"},"sink":{"app":"hood"}}' http://localhost:12321
+ working-directory: ./pkg/urbit
|
esp32/machine_uart: Return None from UART read if no data is available.
This is instead of returning an empty bytes object, and matches how other
ports handle non-blocking UART read behaviour. | @@ -297,7 +297,7 @@ STATIC mp_uint_t machine_uart_read(mp_obj_t self_in, void *buf_in, mp_uint_t siz
int bytes_read = uart_read_bytes(self->uart_num, buf_in, size, time_to_wait);
- if (bytes_read < 0) {
+ if (bytes_read <= 0) {
*errcode = MP_EAGAIN;
return MP_STREAM_ERROR;
}
|
Move Andy to emeritus approver status | @@ -3,7 +3,6 @@ approvers:
- gupta-ak
- achamayou
- anakrish
- - andschwa
- dthaler
- johnkord
- mikbras
@@ -13,7 +12,6 @@ reviewers:
- gupta-ak
- achamayou
- anakrish
- - andschwa
- dthaler
- johnkord
- mikbras
@@ -22,3 +20,4 @@ reviewers:
emeritus_approvers:
- jhand2 # 2020-11-05
- CodeMonkeyLeet #2021-04-05
+ - ands... |
[kernel] add small comments on the update of Interactions within the Newton Loop | @@ -681,6 +681,13 @@ void TimeStepping::newtonSolve(double criterion, unsigned int maxStep)
// --
if(!_isNewtonConverge && _newtonNbIterations < maxStep)
{
+ // if you want to update the interactions within the Newton Loop,
+ // you can uncomment this line
+ // For stability reasons, we keep fix the interactions in the... |
fix(sticky keys): use correct timestamp when clearing sticky key in timer | @@ -234,7 +234,7 @@ void behavior_sticky_key_timer_handler(struct k_work *item) {
if (sticky_key->timer_is_cancelled) {
sticky_key->timer_is_cancelled = false;
} else {
- release_sticky_key_behavior(sticky_key, k_uptime_get());
+ release_sticky_key_behavior(sticky_key, sticky_key->release_at);
clear_sticky_key(sticky_k... |
Specify size for helpData array. | @@ -288,14 +288,15 @@ Output buffer to a file as a byte array
static void
bldHlpRenderHelpAutoC(const Storage *const storageRepo, const BldCfg bldCfg, const BldHlp bldHlp)
{
- // Convert pack to bytes
+ // Convert buffer to bytes
+ const Buffer *const buffer = bldHlpRenderHelpAutoCCmp(bldCfg, bldHlp);
+
String *const h... |
hoon: removes "road:new" printf from virtualized crash | =/ res (mule trap)
?- -.res
%& p.res
- %| (mean leaf+"road: new" p.res)
+ %| (mean p.res)
==
::
++ slew :: get axis in vase
|
Calls to neat_freelpaddrs(). | @@ -565,7 +565,7 @@ int nsa_getladdrs(int sockfd, neat_assoc_t id, struct sockaddr** addrs)
/* ###### NEAT nsa_freeladdrs() implementation ########################### */
void nsa_freeladdrs(struct sockaddr* addrs)
{
- free(addrs);
+ neat_freelpaddrs(addrs);
}
@@ -579,7 +579,7 @@ int nsa_getpaddrs(int sockfd, neat_assoc... |
Improve substitution rules for SYMBOLPREFIX and -SUFFIX addition | @@ -47,12 +47,18 @@ ifndef NO_CBLAS
@echo Generating cblas.h in $(DESTDIR)$(OPENBLAS_INCLUDE_DIR)
@cp cblas.h cblas.tmp
ifdef SYMBOLPREFIX
- @sed 's/cblas/$(SYMBOLPREFIX)cblas/g' cblas.tmp > cblas.tmp2
- @sed 's/openblas/$(SYMBOLPREFIX)openblas/g' cblas.tmp2 > cblas.tmp
+ @sed 's/cblas[^( ]*/$(SYMBOLPREFIX)&/g' cblas.t... |
get n'sync quicker | @@ -2478,7 +2478,7 @@ bool CBlock::ConnectBlock(CTxDB& txdb, CBlockIndex* pindex, bool fJustCheck)
}
}
- if(pindex->GetBlockTime() > GetTime() - 30*nCoinbaseMaturity && (pindex->nHeight < pindexBest->nHeight+20) && !IsInitialBlockDownload() && FortunastakePayments == true)
+ if(pindex->GetBlockTime() > GetTime() - 30*n... |
python: don't init pluginprocess if config invalid | @@ -208,20 +208,20 @@ int PYTHON_PLUGIN_FUNCTION (Open) (ckdb::Plugin * handle, ckdb::Key * errorKey)
ElektraPluginProcess * pp = static_cast<ElektraPluginProcess *> (elektraPluginGetData (handle));
if (pp == nullptr)
{
- pp = elektraPluginProcessInit (errorKey);
- if (pp == nullptr) return ELEKTRA_PLUGIN_STATUS_ERROR;... |
docs/kernel-versions: add reference to powerpc64 constant blinding support
... introduced in v4.9 | @@ -15,6 +15,7 @@ ARM64 | 3.18 | [e54bcde3d69d](https://git.kernel.org/cgit/linux/kernel/git/torva
s390 | 4.1 | [054623105728](https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=054623105728b06852f077299e2bf1bf3d5f2b0b)
Constant blinding for JIT machines | 4.7 | [4f3446bb809f](https://git.kernel... |
Added MultitrackStudio and QTractor to readme
Figured it's best to keep this up to date for when devs check the repo. | @@ -115,6 +115,8 @@ and use to get a basic plugin experience:
## Hosts
- [Bitwig](https://bitwig.com), you need at least _Bitwig Studio 4.3 Beta 5_
+- [Multitrackstudio](https://www.multitrackstudio.com/), you need at least _Multitrack Studio 10.4.1_
+- [QTractor](https://www.qtractor.org)
## Examples
|
Update Dockerfile
We actually need to run sgdk/bin/create-bin-wrappers.sh after cleaning it and making it executable. | @@ -25,6 +25,8 @@ ENV SGDK_DOCKER=y
RUN sed -i 's/\r$//' sgdk/bin/create-bin-wrappers.sh && \
chmod +x sgdk/bin/create-bin-wrappers.sh
+RUN sgdk/bin/create-bin-wrappers.sh
+
# Set-up mount point and make command
VOLUME /src
WORKDIR /src
|
Fix error handling in replacement pthread_barrier_init().
Commit incorrectly used an errno-style interface when supplying
missing pthread functionality (i.e. on macOS), but it should check for
and return error numbers directly. | int
pthread_barrier_init(pthread_barrier_t *barrier, const void *attr, int count)
{
+ int error;
+
barrier->sense = false;
barrier->count = count;
barrier->arrived = 0;
- if (pthread_cond_init(&barrier->cond, NULL) < 0)
- return -1;
- if (pthread_mutex_init(&barrier->mutex, NULL) < 0)
+ if ((error = pthread_cond_init(&... |
test: add platone test case test_002InitWallet_0003SetChainIdSuccess
fix the issue aitos-io#1176
teambition task id: | @@ -623,6 +623,26 @@ START_TEST(test_002InitWallet_0002SetEIP155CompFailureNullParam)
}
END_TEST
+START_TEST(test_002InitWallet_0003SetChainIdSuccess)
+{
+ BSINT32 rtnVal;
+ BoatPlatoneWallet *wallet_ptr = BoatMalloc(sizeof(BoatPlatoneWallet));
+ BoatPlatoneWalletConfig wallet = get_platone_wallet_settings();
+
+ ck_as... |
CBLK: Adding better statistics fixing error handling | @@ -886,6 +886,7 @@ static int check_request_timeouts(struct cblk_dev *c, struct timeval *etime,
errno = ETIME;
cblk_set_status(req, CBLK_ERROR);
+ if (req->use_wait_sem)
sem_post(&req->wait_sem);
}
}
@@ -1575,6 +1576,8 @@ static void _done(void)
" block_writes_4k: %ld\n"
" idle_wakeups: %ld\n"
" running: %ld usec\n"
+... |
Avoid server stacktraces on close
On close, the socket is closed by the client, and the server process is
killed.
This leads to (expected) exceptions, that should not be printed. | package com.genymobile.scrcpy;
import java.io.IOException;
+import java.lang.reflect.InvocationTargetException;
public final class ScrCpyServer {
@@ -20,7 +21,7 @@ public final class ScrCpyServer {
// synchronous
screenEncoder.streamScreen(device, connection.getOutputStream());
} catch (IOException e) {
- Ln.e("Screen ... |
tcp_transport/test: Fix wrong use of transport in set-interface | @@ -416,7 +416,7 @@ TEST_CASE("ws_transport: Keep alive test", "[tcp_transport]")
// Bind device interface to loopback
TEST_TRANSPORT_BIND_IFNAME();
- esp_transport_ssl_set_interface_name(ws, &ifr);
+ esp_transport_ssl_set_interface_name(ssl, &ifr);
tcp_transport_keepalive_test(ws, &keep_alive_cfg);
|
ble_monitor; crashes if outputting uart receives any characters.
Add a routine to discard the data instead. | @@ -71,6 +71,12 @@ inc_and_wrap(int i, int max)
return (i + 1) & (max - 1);
}
+static int
+monitor_uart_rx_discard(void *arg, uint8_t ch)
+{
+ return 0;
+}
+
static int
monitor_uart_tx_char(void *arg)
{
@@ -295,7 +301,7 @@ ble_monitor_init(void)
.uc_parity = UART_PARITY_NONE,
.uc_flow_ctl = UART_FLOW_CTL_NONE,
.uc_tx_c... |
Check first if the board is already remounted by checking mode change and remount count
Removed old bootloader check, mbedls will do all remount check | @@ -522,21 +522,35 @@ class DaplinkBoard(object):
if data_crc != details_crc:
test_info.failure("Bootloader CRC is wrong")
- def wait_for_remount(self, parent_test, wait_time=1800):
+ def wait_for_remount(self, parent_test, wait_time=600):
mode = self._mode
count = self._remount_count
test_info = parent_test.create_sub... |
lv_txt enforce pretty wrapping when first word of a line is a long word. | @@ -149,6 +149,9 @@ void lv_txt_get_size(lv_point_t * size_res, const char * text, const lv_font_t *
* 3. Return i=9, pointing at breakchar '\n'
* 4. Parenting lv_txt_get_next_line() would detect subsequent '\0'
*
+ * TODO: Returned word_w_ptr may overestimate the returned word's width when
+ * max_width is reached. In... |
gpu: properly expunge render passes and framebuffers; | @@ -2346,8 +2346,10 @@ static void expunge() {
case VK_OBJECT_TYPE_DESCRIPTOR_POOL: vkDestroyDescriptorPool(state.device, victim->handle, NULL); break;
case VK_OBJECT_TYPE_PIPELINE_LAYOUT: vkDestroyPipelineLayout(state.device, victim->handle, NULL); break;
case VK_OBJECT_TYPE_PIPELINE: vkDestroyPipeline(state.device, v... |
upstream: remove unused conditionals of flushing method | @@ -187,9 +187,6 @@ static struct flb_upstream_conn *get_conn(struct flb_upstream *u)
{
struct flb_upstream_conn *conn;
-#ifdef FLB_HAVE_FLUSH_PTHREADS
- pthread_mutex_lock(&u->mutex_queue);
-#endif
/* Get the first available connection and increase the counter */
conn = mk_list_entry_first(&u->av_queue,
struct flb_ups... |
py/send_message: get & display firmware hashes in the bootloader | @@ -24,6 +24,7 @@ from typing import List, Any, Optional, Callable, Union, Tuple, Sequence
import hashlib
import base64
import binascii
+import textwrap
import requests
import hid
@@ -871,13 +872,25 @@ class SendMessageBootloader:
def _dont_show_fw_hash(self) -> None:
self._device.set_show_firmware_hash(False)
+ def _g... |
YAML CPP: Use common macro of logging facility | @@ -12,10 +12,6 @@ if (DEPENDENCY_PHASE)
if (APPLE AND CMAKE_COMPILER_IS_GNUCXX)
string (REPLACE "-Wshadow" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
endif (APPLE AND CMAKE_COMPILER_IS_GNUCXX)
-
- if (HAVE_LOGGER)
- add_definitions (-DLOGGING_ENABLED)
- endif (HAVE_LOGGER)
endif (NOT YAML-CPP_FOUND)
set (YAML_PLUGIN_INC... |
kdb-complete: add bookmark support | @@ -55,9 +55,10 @@ int CompleteCommand::execute (const Cmdline & cl)
const Key originalUnprocessedKey (originalInput, KEY_END);
KDB kdb;
// Determine the actual root key, as for completion purpose originalRoot may not exist
- // If we want to complete an initial namespace, everything done by cl.createKey is unnecessary... |
host_exerciser: don't pull in IRQ mode | @@ -245,6 +245,7 @@ public:
he_interrupt_.VectorNum = host_exe_->he_interrupt_;
d_afu->write32(HE_INTERRUPT0, he_interrupt_.value);
ev = d_afu->register_interrupt(host_exe_->he_interrupt_);
+ std::cout << "Using Interrupts\n";
}
// Write to CSR_CTL
@@ -261,15 +262,6 @@ public:
if (he_lpbk_cfg_.IntrTestMode == 1) {
try ... |
Enhance toString. | @@ -209,8 +209,8 @@ tinyspline::Domain::toString() const
{
std::ostringstream oss;
oss << "Domain{"
- << "min: " << m_min
- << ", max: " << m_max
+ << "min: " << min()
+ << ", max: " << max()
<< "}";
return oss.str();
}
@@ -572,10 +572,10 @@ tinyspline::Frame::toString() const
{
std::ostringstream oss;
oss << "Frame{"
... |
fix crash when introspection_client_auth_bearer_token is not set | @@ -80,7 +80,9 @@ static apr_byte_t oidc_oauth_validate_access_token(request_rec *r, oidc_cfg *c,
apr_table_addn(params, c->oauth.introspection_token_param_name, token);
const char *bearer_access_token_auth =
- strcmp(c->oauth.introspection_client_auth_bearer_token, "") == 0 ?
+ ((c->oauth.introspection_client_auth_bea... |
Bump URF version. | @@ -975,7 +975,7 @@ make_attrs(
rs[32]; // RS (resolution) values
num_values = 0;
- svalues[num_values ++] = "V1.4";
+ svalues[num_values ++] = "V1.5";
svalues[num_values ++] = "W8";
if (data->raster_types & PAPPL_PWG_RASTER_TYPE_SRGB_8)
svalues[num_values ++] = "SRGB24";
|
set deviceID via oc_core_get_device_info | @@ -94,15 +94,14 @@ static int
app_init(void)
{
int ret = oc_init_platform(manufacturer, NULL, NULL);
- oc_device_info_t* d = oc_core_add_new_device("/oic/d", device_rt, device_name, spec_version,
+ ret |= oc_add_device("/oic/d", device_rt, device_name, spec_version,
data_model_version, NULL, NULL);
- if (!d) {
- retur... |
Fix bug when routing table is full | @@ -307,6 +307,8 @@ void RoutingTB_ComputeRoutingTableEntryNB(void)
return;
}
}
+ // Routing table space is full.
+ last_routing_table_entry = MAX_RTB_ENTRY - 1;
}
/******************************************************************************
* @brief manage container name increment to never have same alias
|
Use correct TLS alert code for QUIC_ERROR_CRYPTO_USER_CANCELED | #define QUIC_ERROR_CRYPTO_ERROR(TlsAlertCode) ((QUIC_VAR_INT)(0x100 | (TlsAlertCode)))
#define IS_QUIC_CRYPTO_ERROR(QuicCryptoError) ((QuicCryptoError & 0x100) == 0x100)
-#define QUIC_ERROR_CRYPTO_USER_CANCELED QUIC_ERROR_CRYPTO_ERROR(22) // TLS error code for 'user_canceled'
#define QUIC_ERROR_CRYPTO_HANDSHAKE_FAILURE... |
sse: fixed incorrect mm_sfence define | @@ -2817,7 +2817,7 @@ simde_mm_sfence (void) {
#endif
}
#if defined(SIMDE_SSE_ENABLE_NATIVE_ALIASES)
-# define _mm_sfence_ps() simde_mm_sfence()
+# define _mm_sfence() simde_mm_sfence()
#endif
#define SIMDE_MM_SHUFFLE(z, y, x, w) (((z) << 6) | ((y) << 4) | ((x) << 2) | (w))
|
change exit code of cli auth test | @@ -11218,7 +11218,7 @@ requires_openssl_tls1_3
run_test "TLS 1.3: Server side check - openssl with client authentication" \
"$P_SRV debug_level=4 auth_mode=required crt_file=data_files/server5.crt key_file=data_files/server5.key force_version=tls13 tickets=0" \
"$O_NEXT_CLI -msg -debug -cert data_files/server5.crt -ke... |
hslua-packaging: break up hslua_udnewindex into smaller functions | @@ -140,19 +140,19 @@ int hslua_udindex(lua_State *L)
}
/*
-** Sets a new value in the userdata caching table via a setter
-** functions.
-**
-** The actual assignment is performed by a setter function stored in the
-** `setter` metafield. Throws an error if no setter function can be
-** found.
+** Set value via a prop... |
hw/mcu/dialog: Enable cache retainability | @@ -96,6 +96,9 @@ void SystemInit(void)
g_mcu_pdc_combo_idx = idx;
CRG_TOP->PMU_CTRL_REG |= CRG_TOP_PMU_CTRL_REG_SYS_SLEEP_Msk;
+
+ /* Enable cache retainability */
+ CRG_TOP->PMU_CTRL_REG |= CRG_TOP_PMU_CTRL_REG_RETAIN_CACHE_Msk;
#endif
/* XXX temporarily enable PD_COM and PD_PER since we do not control them */
|
fix the issue for function:UtilityNative2PKCS | @@ -643,6 +643,20 @@ char *Utility_itoa(int num, char *str, int radix);
* return BOAT_ERROR.
*******************************************************************************/
BOAT_RESULT UtilityPKCS2Native(BCHAR *input,KeypairNative *keypair);
+
+/*************************************************************************... |
move DEV_DLL_PROXY module doc to internal module doc | @@ -1599,7 +1599,7 @@ module DLL: DLL_UNIT {
DLL_PROXY_CMD_MF=$GENERATE_MF && $COPY_CMD $AUTO_INPUT $TARGET
-### @usage: DEV_DLL_PROXY() # deprecated
+### @usage: DEV_DLL_PROXY() # internal
###
### The use of this module is strictly prohibited!!!
### This is a temporary and project-specific solution.
|
[ArgoUI] 0.2.1 | Pod::Spec.new do |s|
s.name = 'ArgoUI'
- s.version = '0.2.0'
+ s.version = '0.2.1'
s.summary = 'A lib of Momo Lua UI.'
# This description is used to generate tags and improve search results.
|
VERSION bump to version 0.8.28 | @@ -28,7 +28,7 @@ set(CMAKE_C_FLAGS_DEBUG "-g -O0")
# set version
set(LIBNETCONF2_MAJOR_VERSION 0)
set(LIBNETCONF2_MINOR_VERSION 8)
-set(LIBNETCONF2_MICRO_VERSION 27)
+set(LIBNETCONF2_MICRO_VERSION 28)
set(LIBNETCONF2_VERSION ${LIBNETCONF2_MAJOR_VERSION}.${LIBNETCONF2_MINOR_VERSION}.${LIBNETCONF2_MICRO_VERSION})
set(LI... |
Update DataViewerCollection.hpp
Undo non-essential changes | @@ -27,7 +27,6 @@ namespace ARIASDK_NS_BEGIN {
virtual bool IsViewerEnabled() const noexcept override;
virtual ~DataViewerCollection() noexcept {};
-
private:
MATSDK_LOG_DECL_COMPONENT_CLASS();
|
Leaf: Split array parents in `set` direction | #include "leaf_delegate.hpp"
using std::accumulate;
+using std::ignore;
using std::make_pair;
using std::pair;
using std::range_error;
@@ -353,9 +354,12 @@ int LeafDelegate::convertToDirectories (CppKeySet & keys)
*/
int LeafDelegate::convertToLeaves (CppKeySet & keys)
{
+ CppKeySet notArrayParents;
CppKeySet directori... |
schema compile BUGFIX deviate remove shorthand case
Fixes | @@ -3299,21 +3299,19 @@ lys_compile_node_choice_child(struct lysc_ctx *ctx, struct lysp_node *child_p, s
/* standard case under choice */
ret = lys_compile_node(ctx, child_p, node, 0, child_set);
} else {
- /* we need the implicit case first, so create a fake parsed case */
+ /* we need the implicit case first, so crea... |
ASN1: Fix d2i_KeyParams() to advance |pp| like all other d2i functions do | @@ -18,7 +18,6 @@ EVP_PKEY *d2i_KeyParams(int type, EVP_PKEY **a, const unsigned char **pp,
long length)
{
EVP_PKEY *ret = NULL;
- const unsigned char *p = *pp;
if ((a == NULL) || (*a == NULL)) {
if ((ret = EVP_PKEY_new()) == NULL)
@@ -34,7 +33,7 @@ EVP_PKEY *d2i_KeyParams(int type, EVP_PKEY **a, const unsigned char **... |
Ok, I'll stop tinkering with this soon. | @@ -79,8 +79,9 @@ void Log(LogLevel level, const char* fmt, ...);
inline int FoldCase(int c)
{
// This generates branch-free code on GCC, Clang and MSVC
- int adjust = (c >= 'A' && c <= 'Z') ? 0x20 : 0;
- return c | adjust;
+ unsigned int x = (unsigned int) c - 'A';
+ int d = c + 0x20;
+ return (x < 26 ? d : c);
}
// C... |
sysdeps/managarm: Pass mmap() hint to POSIX | @@ -626,6 +626,7 @@ int sys_vm_map(void *hint, size_t size, int prot, int flags, int fd, off_t offse
managarm::posix::CntRequest<MemoryAllocator> req(getSysdepsAllocator());
req.set_request_type(managarm::posix::CntReqType::VM_MAP);
+ req.set_address_hint(reinterpret_cast<uintptr_t>(hint));
req.set_size(size);
req.set_... |
Fix year on recent commit messages. | -25 January 2018: Wouter
+25 January 2019: Wouter
- Fix that tcp for auth zone and outgoing does not remove and
then gets the ssl read again applied to the deleted commpoint.
- updated contrib/fastrpz.patch to cleanly diff.
- remove compile warnings from libnettle compile.
- output of newer lex 2.6.1 and bison 3.0.5.
-... |
OcConfigurationLib: DisableSingleUser was enabling wrong preference | @@ -149,7 +149,7 @@ OC_SCHEMA
mBooterQuirksSchema[] = {
OC_SCHEMA_BOOLEAN_IN ("AvoidRuntimeDefrag", OC_GLOBAL_CONFIG, Booter.Quirks.AvoidRuntimeDefrag),
OC_SCHEMA_BOOLEAN_IN ("DevirtualiseMmio", OC_GLOBAL_CONFIG, Booter.Quirks.DevirtualiseMmio),
- OC_SCHEMA_BOOLEAN_IN ("DisableSingleUser", OC_GLOBAL_CONFIG, Booter.Quir... |
Use relative links for docs
Also fix imgtool script link | @@ -41,12 +41,12 @@ https://runtimeco.atlassian.net/wiki/discover/all-updates
For more information in the source, here are some pointers:
-- [boot/bootutil](https://github.com/runtimeco/mcuboot/tree/master/boot/bootutil): The core of the bootloader itself.
-- [boot/boot\_serial](https://github.com/runtimeco/mcuboot/tre... |
subprocess: better logic for timeouts with -T | @@ -380,16 +380,17 @@ void subproc_checkTimeLimit(honggfuzz_t * hfuzz, fuzzer_t * fuzzer)
int64_t curMillis = util_timeNowMillis();
int64_t diffMillis = curMillis - fuzzer->timeStartedMillis;
- if (diffMillis > (hfuzz->tmOut * 1000)) {
+
+ if (fuzzer->tmOutSignaled && (diffMillis > ((hfuzz->tmOut + 1) * 1000))) {
/* Ha... |
Add branch coverage to genhtml. | @@ -50,6 +50,7 @@ if(TINYSPLINE_COVERAGE_AVAILABLE)
--extract ${TINYSPLINE_COVERAGE_INFO_FILE} '*tinyspline.c'
--output-file ${TINYSPLINE_COVERAGE_INFO_FILE}
COMMAND ${TINYSPLINE_GENHTML}
+ --rc genhtml_branch_coverage=1
-o ${TINYSPLINE_COVERAGE_OUTPUT_DIRECTORY}/c
${TINYSPLINE_COVERAGE_INFO_FILE}
COMMAND ${CMAKE_COMMA... |
pbio/trajectory: Fix assert for ramp intersection.
There is no objection to the angles being equal.
They'll just "intersect" precisely at that value. | @@ -230,9 +230,18 @@ static int32_t bind_w0(int32_t w_end, int32_t a, int32_t th) {
static int32_t intersect_ramp(int32_t th3, int32_t th0, int32_t a0, int32_t a2) {
assert_accel_angle(th3 - th0);
+
+ // If angles are equal, that's where they intersect.
+ // This avoids the acceleration ratio division, which
+ // is ne... |
OcAppleKernelLib: Remove faulty padslot relocation sanity check. | @@ -481,10 +481,10 @@ InternalCalculateTargetsIntel64 (
// MetaClass structure to find classes for patching, so an unpatched
// vtable means that there is an OSObject-dervied class that is missing
// its OSDeclare/OSDefine macros.
+ // - FIXME: This cannot currently be checked with the means of this
+ // library. KXLD ... |
Separate ARM_PATH from UV4 variable | :: See the License for the specific language governing permissions and
:: limitations under the License.
::
-
+setlocal enabledelayedexpansion
@rem Script assumes working directory is workspace root. Force it.
cd %~dp0..\
@rem See if we can find uVision. This logic is consistent with progen
@if [%UV4%]==[] (
@echo UV4 ... |
shouldn't have tools/B | # Technology used is ASAP7
vlsi.core.technology: asap7
vlsi.core.node: 7
-# Specify dir with ASAP7 tarball
-technology.asap7.tarball_dir: "/tools/B/asap7"
-# Specify extracted dir here if not using tarball
-technology.asap7.install_dir: "/tools/B/asap7"
+technology.asap7.tarball_dir: "SPECIFY DIR WITH ASAP7 TARBALL"
+t... |
test-suite: fix configure summary alignment for extrae | @@ -58,8 +58,8 @@ echo
echo '-------------------------------------------------- SUMMARY --------------------------------------------------'
echo
echo Package version............... : $PACKAGE-$VERSION
-echo OHPC compiler toolchain........ : $LMOD_FAMILY_COMPILER
-echo OHPC MPI toolchain............. : $LMOD_FAMILY_MPI
... |
fix: ci unsage repo zemu | @@ -45,7 +45,9 @@ jobs:
- uses: actions/checkout@v2
- name: Build testing binaries
- run: cd tests/zemu/ && ./build_local_test_elfs.sh
+ run: |
+ git config --global --add safe.directory "$GITHUB_WORKSPACE"
+ cd tests/zemu/ && ./build_local_test_elfs.sh
- name: Upload app binaries
uses: actions/upload-artifact@v2
|
lwip - Prevent rollover during time calculation.
Use a 64-bit integer to prevent rollover of the intermediate result. | @@ -101,13 +101,10 @@ sys_mutex_unlock(sys_mutex_t *mutex)
static inline uint32_t
sys_now(void)
{
- uint32_t t;
+ uint64_t t;
- /*
- * XXX not right when g_os_time rolls over
- */
- t = os_time_get() * 1000 / OS_TICKS_PER_SEC;
- return t;
+ t = os_time_get();
+ return t * 1000 / OS_TICKS_PER_SEC;
}
static inline err_t
|
VERSION bump o version 2.0.241 | @@ -61,7 +61,7 @@ set (CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})
# set version of the project
set(LIBYANG_MAJOR_VERSION 2)
set(LIBYANG_MINOR_VERSION 0)
-set(LIBYANG_MICRO_VERSION 240)
+set(LIBYANG_MICRO_VERSION 241)
set(LIBYANG_VERSION ${LIBYANG_MAJOR_VERSION}.${LIBYANG_MINOR_VERSION}.${LIBYANG_MICRO_VERSION}... |
serial-libs/plasma: shift openmp linking | @@ -72,12 +72,12 @@ export SHARED_OPT=-shared
%if %{compiler_family} == gnu8
export PIC_OPT=-fPIC
-export SONAME_OPT="-fopenmp -Wl,-soname"
+export SONAME_OPT="-Wl,-soname"
%endif
%if %{compiler_family} == intel
export PIC_OPT=-fpic
-export SONAME_OPT="-qopenmp -Xlinker -soname"
+export SONAME_OPT="-Xlinker -soname"
%e... |
Use vector overprocess without loop tail | @@ -906,19 +906,12 @@ void compute_ideal_weights_for_decimation(
}
// Populate the interpolated weight grid based on the initital average
- // Process SIMD-width texel coordinates at at time while we can
- unsigned int is = 0;
- unsigned int clipped_texel_count = round_down_to_simd_multiple_vla(texel_count);
- for (/* ... |
feat(venachain):adapt third-party Makefile for venachain | all:
-# If BOAT_PROTOCOL_USE_ETHEREUM, BOAT_PROTOCOL_USE_PLATONE, BOAT_PROTOCOL_USE_PLATONE, BOAT_PROTOCOL_USE_FISCOBCOS has one setted to 1,
+# If BOAT_PROTOCOL_USE_ETHEREUM, BOAT_PROTOCOL_USE_PLATONE, BOAT_PROTOCOL_USE_PLATONE, BOAT_PROTOCOL_USE_FISCOBCOS BOAT_PROTOCOL_USE_VENACHAIN has one setted to 1,
# then build ... |
Fix truncated assembler checks | @@ -15,7 +15,7 @@ ifeq ($(HOSTARCH), amd64)
HOSTARCH=x86_64
endif
-HAVE_GAS := $(shell as -v < /dev/null 2>&1 | grep GNU 2>&1 >/dev/null)
+HAVE_GAS := $(shell as -v < /dev/null 2>&1 | grep GNU 2>&1 >/dev/null ; echo $$?)
# Catch conflicting usage of ARCH in some BSD environments
ifeq ($(ARCH), amd64)
|
Add hat for mithon | <head>
<meta charset="utf-8">
<title>Mixly micro:bit</title>
- <script type="text/javascript" src="../../blockly_compressed_py.js"></script>
+ <script type="text/javascript" src="../../blockly_compressed_mithon.js"></script>
<script type="text/javascript" src="../../python_compressed.js"></script>
<script type="text/ja... |
build UPDATE libcrypt does not exist on MacOS
Refs | @@ -251,12 +251,12 @@ if(ENABLE_SSH)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DNC_ENABLED_SSH")
# crypt
- if(NOT ${CMAKE_SYSTEM_NAME} MATCHES "QNX")
- target_link_libraries(netconf2 -lcrypt)
- list(APPEND CMAKE_REQUIRED_LIBRARIES crypt)
- else()
+ if(${CMAKE_SYSTEM_NAME} MATCHES "QNX")
target_link_libraries(netconf2 -llogi... |
Allow using parent project's hdr_histogram_static target
Tested-by: Build Bot | @@ -111,13 +111,20 @@ IF(LCB_USE_PROFILER)
INCLUDE(cmake/Modules/FindProfiler.cmake)
ENDIF()
IF(LCB_USE_HDR_HISTOGRAM)
+ # Allow for building libcouchbase inside a larger CMake project that
+ # already includes HdrHistogram_c
+ IF (NOT TARGET hdr_histogram_static)
ADD_SUBDIRECTORY(contrib/HdrHistogram_c)
+ ENDIF ()
+
+... |
Disable random tests temporarily | */
import "random.du";
-import "select.du";
-import "range.du";
\ No newline at end of file
+// TODO: Look into these, seems the error percentage is off slightly
+// import "select.du";
+// import "range.du";
\ No newline at end of file
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.